diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-11 14:16:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-11 14:16:55 +0000 |
commit | 9a8cfc2fd10bd5d66ec0b73824be90d328f97781 (patch) | |
tree | c653d5f134e0ef27e2dd13dfb777810f96bfb29c /modules | |
parent | 8106cda1acbfebcf2f2f09699669040ca00d886c (diff) | |
download | brdo-9a8cfc2fd10bd5d66ec0b73824be90d328f97781.tar.gz brdo-9a8cfc2fd10bd5d66ec0b73824be90d328f97781.tar.bz2 |
- Patch #541346 by Jaza: enabling admin theme doesn't initialize blocks.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/block/block.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/block/block.module b/modules/block/block.module index 306b7bcd7..48171affa 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -514,7 +514,7 @@ function block_system_themes_form_submit(&$form, &$form_state) { } } } - if ($form_state['values']['admin_theme'] && $form_state['values']['admin_theme'] != variable_get('admin_theme', 0)) { + if ($form_state['values']['admin_theme'] && $form_state['values']['admin_theme'] !== variable_get('admin_theme', 0)) { // If we're changing themes, make sure the theme has its blocks initialized. $has_blocks = (bool) db_query_range('SELECT 1 FROM {block} WHERE theme = :theme', array(':theme' => $form_state['values']['admin_theme']), 0, 1)->fetchField(); if (!$has_blocks) { |