summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module3
1 files changed, 2 insertions, 1 deletions
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);