Commit 2e721505 authored by Dries's avatar Dries
Browse files

- undid small improvement ;)

parent d8182d20
......@@ -54,12 +54,12 @@ function theme_main_blocks($theme) {
else theme_new_headlines($theme);
break;
case "/index":
theme_account($theme);
$result = db_query("SELECT * FROM blocks WHERE status = 2");
while ($block = db_fetch_object($result)) {
$blocks = module_execute($block->module, "block");
$theme->box($blocks[$block->offset]["subject"], $blocks[$block->offset]["content"]);
}
theme_account($theme);
break;
default:
theme_account($theme);
......
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