summaryrefslogtreecommitdiff
path: root/modules/block.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/block.module')
-rw-r--r--modules/block.module4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/block.module b/modules/block.module
index ad479f239..7e4d93797 100644
--- a/modules/block.module
+++ b/modules/block.module
@@ -154,9 +154,7 @@ function block_admin_save($edit) {
function _block_rehash($order_by = array('weight')) {
global $theme_key;
- if (empty($theme_key)) {
- init_theme();
- }
+ init_theme();
$result = db_query("SELECT * FROM {blocks} WHERE theme = '%s'", $theme_key);
while ($old_block = db_fetch_object($result)) {