aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/admin/user/ban.php2
-rw-r--r--actions/admin/user/delete.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php
index 5f2e214c4..51884b223 100644
--- a/actions/admin/user/ban.php
+++ b/actions/admin/user/ban.php
@@ -29,6 +29,6 @@
else
system_message(elgg_echo('admin:user:ban:no'));
- header("Location: {$CONFIG->wwwroot}admin/user/");
+ forward($_SERVER['HTTP_REFERER']);
exit;
?> \ No newline at end of file
diff --git a/actions/admin/user/delete.php b/actions/admin/user/delete.php
index 9c2a83e28..015d25371 100644
--- a/actions/admin/user/delete.php
+++ b/actions/admin/user/delete.php
@@ -29,6 +29,6 @@
else
system_message(elgg_echo('admin:user:delete:no'));
- header("Location: {$CONFIG->wwwroot}admin/user/");
+ forward($_SERVER['HTTP_REFERER']);
exit;
?> \ No newline at end of file