summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/queue.module2
-rw-r--r--modules/user.module6
-rw-r--r--modules/user/user.module6
3 files changed, 7 insertions, 7 deletions
diff --git a/modules/queue.module b/modules/queue.module
index 3da3fcb2d..676d3fc3a 100644
--- a/modules/queue.module
+++ b/modules/queue.module
@@ -86,7 +86,7 @@ function queue_node($id) {
$node = node_get_object(array(nid => $id));
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 {
$queue_votes = array("neutral (+0)" => "+ 0", "post it (+1)" => "+ 1", "dump it (-1)" => "- 1");
diff --git a/modules/user.module b/modules/user.module
index 1ee6599b0..5e976b61e 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -482,7 +482,7 @@ function user_login($edit = array()) {
$url = $HTTP_REFERER ? $HTTP_REFERER : "module.php?mod=user&op=view";
- header("Location: $url");
+ drupal_goto($url);
}
else {
@@ -529,7 +529,7 @@ function user_logout() {
** Redirect the user to his personal information page:
*/
- header("Location: index.php");
+ drupal_goto("index.php");
}
}
@@ -688,7 +688,7 @@ function user_edit($edit = array()) {
** Redirect the user to his personal information page:
*/
- header("Location: module.php?mod=user&op=view");
+ drupal_goto("module.php?mod=user&op=view");
}
}
diff --git a/modules/user/user.module b/modules/user/user.module
index 1ee6599b0..5e976b61e 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -482,7 +482,7 @@ function user_login($edit = array()) {
$url = $HTTP_REFERER ? $HTTP_REFERER : "module.php?mod=user&op=view";
- header("Location: $url");
+ drupal_goto($url);
}
else {
@@ -529,7 +529,7 @@ function user_logout() {
** Redirect the user to his personal information page:
*/
- header("Location: index.php");
+ drupal_goto("index.php");
}
}
@@ -688,7 +688,7 @@ function user_edit($edit = array()) {
** Redirect the user to his personal information page:
*/
- header("Location: module.php?mod=user&op=view");
+ drupal_goto("module.php?mod=user&op=view");
}
}