Commit 2ec15124 authored by Kjartan's avatar Kjartan
Browse files

- blocks will now show up again if 'Enabled: always'

parent 8542e2a3
...@@ -103,7 +103,7 @@ function theme_blocks($region, &$theme) { ...@@ -103,7 +103,7 @@ function theme_blocks($region, &$theme) {
else $result = db_query("SELECT * FROM blocks WHERE status = 2". (($region == "left" OR $region == "right") ? ($region == "left" ? " AND region = 0" : " AND region = 1") : "") ." ORDER BY weight"); else $result = db_query("SELECT * FROM blocks WHERE status = 2". (($region == "left" OR $region == "right") ? ($region == "left" ? " AND region = 0" : " AND region = 1") : "") ." ORDER BY weight");
while ($result && ($block = db_fetch_object($result))) { while ($result && ($block = db_fetch_object($result))) {
$blocks = module_invoke($block->module, "block"); $blocks = module_invoke($block->module, "block");
if ($blocks[$block->offset]["content"]) if ($blocks[$block->delta]["content"])
$theme->box(t($blocks[$block->delta]["subject"]), $blocks[$block->delta]["content"], $region); $theme->box(t($blocks[$block->delta]["subject"]), $blocks[$block->delta]["content"], $region);
} }
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment