From 1559e6c2abb2d378725151da563804e4b7c92c59 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 13 May 2001 17:47:17 +0000 Subject: - Fixed a warning in queue.module. --- modules/queue.module | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'modules') diff --git a/modules/queue.module b/modules/queue.module index 267283ba9..c864e9169 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -1,15 +1,5 @@ "+ 0", - "post it (+1)" => "+ 1", - "dump it (-1)" => "- 1"); - function queue_menu() { return array("". t("moderation queue") ." (". queue_count() .")"); } @@ -71,7 +61,8 @@ function queue_overview() { } function queue_node($id) { - global $theme, $user, $queue_votes; + global $theme, $user; + $node = node_get_object(nid, $id); @@ -79,6 +70,9 @@ function queue_node($id) { header("Location: node.php?id=$node->nid"); } else { + $queue_votes = array("neutral (+0)" => "+ 0", "post it (+1)" => "+ 1", "dump it (-1)" => "- 1"); + // The keys of this associative array are displayed in each submission's selection box whereas the corresponding values represent the mathematical calculation to be performed to update a comment's value. + if ($n = node_get_object("nid", $node->pid)) { $output .= " ". t("The above node is a proposed update of an existing node:") ." \"nid\">". check_output($n->title) ."\"."; } -- cgit v1.2.3