From 7a9bc86bd2f0ba3ba343e014a2e4c7f99d7f0946 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 3 Oct 2001 20:57:01 +0000 Subject: - Improved search architecture derived from Axel's new search patches. (There is room for improvement so let's go from these ... and build on them.) - Removed some $status's by calls to node_status(). --- includes/theme.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/theme.inc') diff --git a/includes/theme.inc b/includes/theme.inc index 7b9d58055..d35a75d76 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -78,13 +78,13 @@ function theme_account($region, $theme) { } function theme_blocks($region, $theme) { - global $id, $PHP_SELF, $status, $user; + global $id, $PHP_SELF, $user; switch (strrchr($PHP_SELF, "/")) { case "/node.php": if ($region != "left") { if ($user->uid) $node = db_fetch_object(db_query("SELECT * FROM node WHERE nid = '$id'")); - if ($node->status == $status[queued]) theme_moderation_results($theme, $node, $region); + if ($node->status == node_status("queued")) theme_moderation_results($theme, $node, $region); } break; case "/index.php": -- cgit v1.2.3