aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/actions/deletecomment.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/actions/deletecomment.php')
-rw-r--r--mod/profile/actions/deletecomment.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/profile/actions/deletecomment.php b/mod/profile/actions/deletecomment.php
index 0a104eabe..233d53069 100644
--- a/mod/profile/actions/deletecomment.php
+++ b/mod/profile/actions/deletecomment.php
@@ -19,11 +19,11 @@ if ($message = get_annotation($annotation_id)) {
$message->delete();
//display message
system_message(elgg_echo("profile:commentwall:deleted"));
- forward($_SERVER['HTTP_REFERER']);
+ forward(REFERER);
}
} else {
system_message(elgg_echo("profile:commentwall:notdeleted"));
}
-forward($_SERVER['HTTP_REFERER']); \ No newline at end of file
+forward(REFERER); \ No newline at end of file