summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/block.module4
-rw-r--r--modules/block/block.module4
2 files changed, 2 insertions, 6 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)) {
diff --git a/modules/block/block.module b/modules/block/block.module
index ad479f239..7e4d93797 100644
--- a/modules/block/block.module
+++ b/modules/block/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)) {