From 4c9fd48cedb88ca3e4e1e19ef862feadb9e244d3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 15 Feb 2010 15:07:57 +0000 Subject: - Patch #687210 by joachim: fixed errors and erroneous warning when admin theme is 'default'. --- modules/system/system.admin.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/system/system.admin.inc') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 1436bb9ca..5e7fa8a2e 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -429,9 +429,10 @@ function system_theme_default() { } // Set the default theme. variable_set('theme_default', $theme); - // The status message depends on whether an admin theme is currently in use. + // The status message depends on whether an admin theme is currently in use: + // a value of 0 means the admin theme is set to be the default theme. $admin_theme = variable_get('admin_theme', 0); - if ($admin_theme != $theme) { + if ($admin_theme != 0 && $admin_theme != $theme) { 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' => $themes[$admin_theme]->info['name'], '%selected_theme' => $themes[$theme]->info['name'], -- cgit v1.2.3