aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/admin/user/ban.php4
-rw-r--r--actions/admin/user/delete.php4
-rw-r--r--actions/admin/user/makeadmin.php4
-rw-r--r--actions/admin/user/resetpassword.php4
4 files changed, 8 insertions, 8 deletions
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php
index 51884b223..48f528036 100644
--- a/actions/admin/user/ban.php
+++ b/actions/admin/user/ban.php
@@ -24,10 +24,10 @@
if ($obj->disable())
system_message(elgg_echo('admin:user:ban:yes'));
else
- system_message(elgg_echo('admin:user:ban:no'));
+ register_error(elgg_echo('admin:user:ban:no'));
}
else
- system_message(elgg_echo('admin:user:ban:no'));
+ register_error(elgg_echo('admin:user:ban:no'));
forward($_SERVER['HTTP_REFERER']);
exit;
diff --git a/actions/admin/user/delete.php b/actions/admin/user/delete.php
index 015d25371..1e77984c5 100644
--- a/actions/admin/user/delete.php
+++ b/actions/admin/user/delete.php
@@ -24,10 +24,10 @@
if (delete_entity($guid))
system_message(elgg_echo('admin:user:delete:yes'));
else
- system_message(elgg_echo('admin:user:delete:no'));
+ register_error(elgg_echo('admin:user:delete:no'));
}
else
- system_message(elgg_echo('admin:user:delete:no'));
+ register_error(elgg_echo('admin:user:delete:no'));
forward($_SERVER['HTTP_REFERER']);
exit;
diff --git a/actions/admin/user/makeadmin.php b/actions/admin/user/makeadmin.php
index 6e537446f..2327b5ab0 100644
--- a/actions/admin/user/makeadmin.php
+++ b/actions/admin/user/makeadmin.php
@@ -26,10 +26,10 @@
if ($result)
system_message(elgg_echo('admin:user:makeadmin:yes'));
else
- system_message(elgg_echo('admin:user:makeadmin:no'));
+ register_error(elgg_echo('admin:user:makeadmin:no'));
}
else
- system_message(elgg_echo('admin:user:makeadmin:no'));
+ register_error(elgg_echo('admin:user:makeadmin:no'));
forward($_SERVER['HTTP_REFERER']);
diff --git a/actions/admin/user/resetpassword.php b/actions/admin/user/resetpassword.php
index f58ae7fa8..5e2f9a01e 100644
--- a/actions/admin/user/resetpassword.php
+++ b/actions/admin/user/resetpassword.php
@@ -32,10 +32,10 @@
notify_user($obj->guid, $CONFIG->site->guid, elgg_echo('email:resetpassword:subject'), sprintf(elgg_echo('email:resetpassword:body'), $obj->username, $password), NULL, 'email');
} else
- system_message(elgg_echo('admin:user:resetpassword:no'));
+ register_error(elgg_echo('admin:user:resetpassword:no'));
}
else
- system_message(elgg_echo('admin:user:resetpassword:no'));
+ register_error(elgg_echo('admin:user:resetpassword:no'));
forward($_SERVER['HTTP_REFERER']);
exit;