summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-05-13 17:47:17 +0000
committerDries Buytaert <dries@buytaert.net>2001-05-13 17:47:17 +0000
commit1559e6c2abb2d378725151da563804e4b7c92c59 (patch)
tree924473549aad22fe543466c2001238983676b3ce
parent743fdddcda762f359c711894be3a95130ebfa04d (diff)
downloadbrdo-1559e6c2abb2d378725151da563804e4b7c92c59.tar.gz
brdo-1559e6c2abb2d378725151da563804e4b7c92c59.tar.bz2
- Fixed a warning in queue.module.
-rw-r--r--modules/queue.module16
1 files changed, 5 insertions, 11 deletions
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 @@
<?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>\".";
}