- small improvement
parent
94acc44555
commit
d8182d2083
|
@ -54,12 +54,12 @@ function theme_main_blocks($theme) {
|
||||||
else theme_new_headlines($theme);
|
else theme_new_headlines($theme);
|
||||||
break;
|
break;
|
||||||
case "/index":
|
case "/index":
|
||||||
theme_account($theme);
|
|
||||||
$result = db_query("SELECT * FROM blocks WHERE status = 2");
|
$result = db_query("SELECT * FROM blocks WHERE status = 2");
|
||||||
while ($block = db_fetch_object($result)) {
|
while ($block = db_fetch_object($result)) {
|
||||||
$blocks = module_execute($block->module, "block");
|
$blocks = module_execute($block->module, "block");
|
||||||
$theme->box($blocks[$block->offset]["subject"], $blocks[$block->offset]["content"]);
|
$theme->box($blocks[$block->offset]["subject"], $blocks[$block->offset]["content"]);
|
||||||
}
|
}
|
||||||
|
theme_account($theme);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
theme_account($theme);
|
theme_account($theme);
|
||||||
|
|
Loading…
Reference in New Issue