summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-10 05:25:57 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-10 05:25:57 +0000
commit583d5a4ee95a583184f39497a44062599ad6e1d7 (patch)
treecdefa73496e1140b7856f4a2fe869b5962b08eac /modules/comment
parent91152ba7af96b8f7125cc54a268f0056435908a1 (diff)
downloadbrdo-583d5a4ee95a583184f39497a44062599ad6e1d7.tar.gz
brdo-583d5a4ee95a583184f39497a44062599ad6e1d7.tar.bz2
- Patch #48622 by adrian: remove drupal_goto from _submit functions.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index d34f0fcd9..13fedb752 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1413,7 +1413,7 @@ function _comment_form_submit($form_values) {
function comment_form_submit($form_id, $form_values) {
$form_values = _comment_form_submit($form_values);
if ($cid = comment_save($form_values)) {
- drupal_goto('node/'. $form_values['nid'], NULL, "comment-$cid");
+ return array('node/'. $form_values['nid'], NULL, "comment-$cid");
}
}