diff --git a/modules/queue.module b/modules/queue.module index 267283ba9fbd93502928d267bcffe020a85c67a8..c864e91699d3a3fd6dfe7fd73be9a92de6a37e05 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -1,15 +1,5 @@ <?php -# -# Submission moderation votes: -# 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. -$queue_votes = array("neutral (+0)" => "+ 0", - "post it (+1)" => "+ 1", - "dump it (-1)" => "- 1"); - function queue_menu() { return array("<A HREF=\"module.php?mod=queue\">". t("moderation queue") ."</A> (<FONT COLOR=\"red\">". queue_count() ."</FONT>)"); } @@ -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:") ." \"<A HREF=\"node.php?id=$n->nid\">". check_output($n->title) ."</A>\"."; }