diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-21 17:55:00 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-21 17:55:00 +0000 |
commit | 37658c5be7fa91fefeb7f49591692b91efc89298 (patch) | |
tree | 8205d4e2964c9faf2ef8f769a0a87e0356ea9d70 /actions | |
parent | d7d2da2c7c4a6f24b6ef4389e4878d475ade6220 (diff) | |
download | elgg-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')
-rw-r--r-- | actions/comments/add.php | 4 | ||||
-rw-r--r-- | actions/comments/delete.php | 2 |
2 files changed, 3 insertions, 3 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']); diff --git a/actions/comments/delete.php b/actions/comments/delete.php index 03e575b66..fd8156dc3 100644 --- a/actions/comments/delete.php +++ b/actions/comments/delete.php @@ -29,4 +29,4 @@ if ($comment = get_annotation($annotation_id)) { } register_error(elgg_echo("generic_comment:notdeleted")); -forward($entity->getURL());
\ No newline at end of file +forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file |