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

- replaced a header("Location: xxx") by a drupal_goto()
parent 2d6fb0f7
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
...@@ -86,7 +86,7 @@ function queue_node($id) { ...@@ -86,7 +86,7 @@ function queue_node($id) {
$node = node_get_object(array(nid => $id)); $node = node_get_object(array(nid => $id));
if ($user->uid == $node->author || field_get($node->users, $user->uid)) { if ($user->uid == $node->author || field_get($node->users, $user->uid)) {
header("Location: node.php?id=$node->nid"); drupal_goto("node.php?id=$node->nid");
} }
else { else {
$queue_votes = array("neutral (+0)" => "+ 0", "post it (+1)" => "+ 1", "dump it (-1)" => "- 1"); $queue_votes = array("neutral (+0)" => "+ 0", "post it (+1)" => "+ 1", "dump it (-1)" => "- 1");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment