summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-02-27 20:58:51 +0000
committerDries Buytaert <dries@buytaert.net>2001-02-27 20:58:51 +0000
commit57e5f6a4d1d7fd682aaed012f866f872678bc0d0 (patch)
treeedb5d64512cc3a803d9c1ec46e22d03c8793c6ec /includes/theme.inc
parent3207add7020c94bf8fde3a84a15ce7a99539e633 (diff)
downloadbrdo-57e5f6a4d1d7fd682aaed012f866f872678bc0d0.tar.gz
brdo-57e5f6a4d1d7fd682aaed012f866f872678bc0d0.tar.bz2
- fixed bug in block placement when (1) using a theme with 2 side bars
and (2) being logged out. (reported by Jeroen) - themed "Editor's note" in theme marvin. (reported by Jeroen)
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index d5ea7dc87..7689ea2c7 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -79,7 +79,7 @@ function theme_blocks($region, $theme) {
break;
case "/index.php":
if ($user->id) $result = db_query("SELECT * FROM blocks b LEFT JOIN layout l ON b.name = l.block WHERE (b.status = 2 OR (b.status AND l.user = '$user->id'))". (($region == "left" || $region == "right") ? ($region == "left" ? " AND b.region = 0" : " AND b.region = 1") : "") ." ORDER BY weight");
- else $result = db_query("SELECT * FROM blocks WHERE status = 2 ORDER BY weight");
+ else $result = db_query("SELECT * FROM blocks WHERE status = 2". (($region == "left" || $region == "right") ? ($region == "left" ? " AND region = 0" : " AND region = 1") : "") ." ORDER BY weight");
while ($block = db_fetch_object($result)) {
$blocks = module_execute($block->module, "block");
$theme->box(t($blocks[$block->offset]["subject"]), $blocks[$block->offset]["content"]);