diff options
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 |