summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-10 08:16:51 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-10 08:16:51 +0000
commit0462d2ebb388660450c88a70bce0b692e061523a (patch)
tree6725a5b6837e3abc529fc45b241281fe54052130 /modules/system/system.module
parent3075e9c770a9e25062468e7eacd76a83791ecf37 (diff)
downloadbrdo-0462d2ebb388660450c88a70bce0b692e061523a.tar.gz
brdo-0462d2ebb388660450c88a70bce0b692e061523a.tar.bz2
#77366 by yched and webernet. Fix the apparently unchanged theme notice.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 5618f9545..3a68602ca 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1185,11 +1185,11 @@ function system_themes_submit($form_id, $form_values) {
}
}
}
- if (($admin_theme = variable_get('admin_theme', '0')) != '0') {
+ if (($admin_theme = variable_get('admin_theme', '0')) != '0' && $admin_theme != $form_values['theme_default']) {
drupal_set_message(t('Please note that the <a href="!admin_theme_page">administration theme</a> is still set to the %admin_theme theme; consequently, the theme on this page remains unchanged. All non-administrative sections of the site, however, will show the selected %selected_theme theme by default.', array(
'!admin_theme_page' => url('admin/settings/admin'),
'%admin_theme' => $admin_theme,
- '%selected_theme' => $values['theme_default'],
+ '%selected_theme' => $form_values['theme_default'],
)));
}
variable_set('theme_default', $form_values['theme_default']);