From 0462d2ebb388660450c88a70bce0b692e061523a Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Fri, 10 Nov 2006 08:16:51 +0000 Subject: [PATCH] #77366 by yched and webernet. Fix the apparently unchanged theme notice. --- modules/system/system.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/system.module b/modules/system/system.module index 5618f95452e..3a68602ca7f 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 administration theme 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']);