summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-03-08 21:00:28 +0000
committerDries Buytaert <dries@buytaert.net>2001-03-08 21:00:28 +0000
commit5d08572dc63f6a6579009f98ae035f358e90a319 (patch)
tree26c9083dbdc33dfa210e4f253313fa6ae46a570e
parenta1b158334a4f2362caa5186f81b41c7cc32011a5 (diff)
downloadbrdo-5d08572dc63f6a6579009f98ae035f358e90a319.tar.gz
brdo-5d08572dc63f6a6579009f98ae035f358e90a319.tar.bz2
- fixed two-side-bar-theme-bug-with-latest-headlines
-rw-r--r--includes/theme.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 8966b8a81..26375f73f 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -73,9 +73,11 @@ function theme_blocks($region, $theme) {
switch (strrchr($PHP_SELF, "/")) {
case "/story.php":
- if ($user->id) $story = db_fetch_object(db_query("SELECT * FROM stories WHERE id = '$id'"));
- if ($story->status == 1) theme_moderation_results($theme, $story);
- else theme_new_headlines($theme);
+ if ($region != "left") {
+ if ($user->id) $story = db_fetch_object(db_query("SELECT * FROM stories WHERE id = '$id'"));
+ if ($story->status == 1) theme_moderation_results($theme, $story);
+ else theme_new_headlines($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 = 1 AND l.user = '$user->id'))". (($region == "left" || $region == "right") ? ($region == "left" ? " AND b.region = 0" : " AND b.region = 1") : "") ." ORDER BY weight");