From 0fe57fe68099c4f397bf6b83e9b036aa1b051749 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 14 Nov 2005 22:19:14 +0000 Subject: - Patch #36333 by Tobias Maier: make sure to enable the default theme. --- modules/system/system.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index e39cf9e07..414e7306d 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -826,7 +826,8 @@ function system_themes_execute($form_id, $values) { if ($_POST['op'] == t('Save configuration')) { if (is_array($values['status'])) { foreach ($values['status'] as $key => $choice) { - if ($choice) { + // Always enable the default theme, despite its status checkbox being checked: + if ($choice || $values['theme_default'] == $key) { // If theme status is being set to 1 from 0, initialize block data for this theme if necessary. if (db_num_rows(db_query("SELECT status FROM {system} WHERE type = 'theme' AND name = '%s' AND status = 0", $key))) { system_initialize_theme_blocks($key); -- cgit v1.2.3