aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/user
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-11 10:41:06 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-11 10:41:06 +0000
commitd90f192e7e138268091ab1f2e7f51ad6e99a7eea (patch)
treecdc594d6979fc8db9815aec872075a90558c99d1 /actions/admin/user
parent60a301bb4dc5503ddcb67b8cf201554a0c459685 (diff)
downloadelgg-d90f192e7e138268091ab1f2e7f51ad6e99a7eea.tar.gz
elgg-d90f192e7e138268091ab1f2e7f51ad6e99a7eea.tar.bz2
Using register_error on errors rather than system_message
git-svn-id: https://code.elgg.org/elgg/trunk@1399 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/admin/user')
-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;