aboutsummaryrefslogtreecommitdiff
path: root/actions/comments/add.php
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-21 17:55:00 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-21 17:55:00 +0000
commit37658c5be7fa91fefeb7f49591692b91efc89298 (patch)
tree8205d4e2964c9faf2ef8f769a0a87e0356ea9d70 /actions/comments/add.php
parentd7d2da2c7c4a6f24b6ef4389e4878d475ade6220 (diff)
downloadelgg-37658c5be7fa91fefeb7f49591692b91efc89298.tar.gz
elgg-37658c5be7fa91fefeb7f49591692b91efc89298.tar.bz2
the beginnings of a mechanism to comment on river objects
git-svn-id: http://code.elgg.org/elgg/trunk@5463 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/comments/add.php')
-rw-r--r--actions/comments/add.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/comments/add.php b/actions/comments/add.php
index 67429f033..bce464fdb 100644
--- a/actions/comments/add.php
+++ b/actions/comments/add.php
@@ -64,5 +64,5 @@ system_message(elgg_echo("generic_comment:posted"));
//add to river
add_to_river('annotation/annotate','comment',$user->guid,$entity->guid, "", 0, $annotation);
-// Forward to the entity page
-forward($entity->getURL());
+// Forward to the page the action occurred on
+forward($_SERVER['HTTP_REFERER']);