summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc2
-rw-r--r--includes/theme.inc4
2 files changed, 3 insertions, 3 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 9c8781331..b60ae23c9 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -99,7 +99,7 @@ function drupal_get_filename($type, $name, $filename = NULL) {
else {
$config = conf_init();
$dir = (($type == 'theme_engine') ? 'themes/engines' : "${type}s");
- $file = "$name.$type";
+ $file = (($type == 'theme_engine') ? "$name.engine" : "$name.$type");
foreach (array("$config/$dir/$file", "$config/$dir/$name/$file", "$dir/$file", "$dir/$name/$file") as $file) {
if (file_exists($file)) {
diff --git a/includes/theme.inc b/includes/theme.inc
index 775ed941a..11004306b 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -55,7 +55,7 @@ function init_theme() {
$theme = $user->theme && $themes[$user->theme]->status ? $user->theme : variable_get('theme_default', 'bluemarine');
// Allow modules to override the present theme... only select custom theme
- // if it is available in the list of enabled themes.
+ // if it is available in the list of installed themes.
$theme = $custom_theme && $themes[$custom_theme] ? $custom_theme : $theme;
// Store the identifier for retrieving theme settings with.
@@ -221,7 +221,7 @@ function path_to_theme() {
*/
function theme_get_settings($key = NULL) {
$defaults = array(
- 'primary_links' => '',
+ 'primary_links' => l('edit primary links', 'admin/themes/settings'),
'secondary_links' => l('edit secondary links', 'admin/themes/settings'),
'mission' => '',
'default_logo' => 1,