diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-08 21:00:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-08 21:00:28 +0000 |
commit | 5d08572dc63f6a6579009f98ae035f358e90a319 (patch) | |
tree | 26c9083dbdc33dfa210e4f253313fa6ae46a570e | |
parent | a1b158334a4f2362caa5186f81b41c7cc32011a5 (diff) | |
download | brdo-5d08572dc63f6a6579009f98ae035f358e90a319.tar.gz brdo-5d08572dc63f6a6579009f98ae035f358e90a319.tar.bz2 |
- fixed two-side-bar-theme-bug-with-latest-headlines
-rw-r--r-- | includes/theme.inc | 8 |
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"); |