diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-11 10:41:06 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-11 10:41:06 +0000 |
commit | d90f192e7e138268091ab1f2e7f51ad6e99a7eea (patch) | |
tree | cdc594d6979fc8db9815aec872075a90558c99d1 /actions/admin/user/makeadmin.php | |
parent | 60a301bb4dc5503ddcb67b8cf201554a0c459685 (diff) | |
download | elgg-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/makeadmin.php')
-rw-r--r-- | actions/admin/user/makeadmin.php | 4 |
1 files changed, 2 insertions, 2 deletions
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']); |