Skip to content
Snippets Groups Projects
Commit 1559e6c2 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Fixed a warning in queue.module.
parent 743fdddc
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
<?php <?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() { function queue_menu() {
return array("<A HREF=\"module.php?mod=queue\">". t("moderation queue") ."</A> (<FONT COLOR=\"red\">". queue_count() ."</FONT>)"); 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() { ...@@ -71,7 +61,8 @@ function queue_overview() {
} }
function queue_node($id) { function queue_node($id) {
global $theme, $user, $queue_votes; global $theme, $user;
$node = node_get_object(nid, $id); $node = node_get_object(nid, $id);
...@@ -79,6 +70,9 @@ function queue_node($id) { ...@@ -79,6 +70,9 @@ function queue_node($id) {
header("Location: node.php?id=$node->nid"); header("Location: node.php?id=$node->nid");
} }
else { 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)) { 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>\"."; $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>\".";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment