diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-11 10:28:28 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-11 10:28:28 +0000 |
commit | 60a301bb4dc5503ddcb67b8cf201554a0c459685 (patch) | |
tree | 49440e90eeac85f921893f02517c3485f1cd2e04 /mod/groups/actions/addtogroup.php | |
parent | 310eeabd5397da75352280c7e24efd504dc11293 (diff) | |
download | elgg-60a301bb4dc5503ddcb67b8cf201554a0c459685.tar.gz elgg-60a301bb4dc5503ddcb67b8cf201554a0c459685.tar.bz2 |
Using register_error on errors rather than system_message
git-svn-id: https://code.elgg.org/elgg/trunk@1398 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/actions/addtogroup.php')
-rw-r--r-- | mod/groups/actions/addtogroup.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/groups/actions/addtogroup.php b/mod/groups/actions/addtogroup.php index b60892012..10aea2880 100644 --- a/mod/groups/actions/addtogroup.php +++ b/mod/groups/actions/addtogroup.php @@ -55,7 +55,7 @@ } else - system_message(elgg_echo("groups:cantjoin")); + register_error(elgg_echo("groups:cantjoin")); $requested = true; } @@ -75,7 +75,7 @@ // Set invite flag //if (!$user->setMetaData('group_invite', $group->getGUID(), "", true)) if (!$user->group_invite = $methods) - system_message(elgg_echo("groups:usernotinvited")); + register_error(elgg_echo("groups:usernotinvited")); else { // Send email @@ -85,12 +85,12 @@ NULL, "email")) system_message(elgg_echo("groups:userinvited")); else - system_message(elgg_echo("groups:usernotinvited")); + register_error(elgg_echo("groups:usernotinvited")); } } } else - system_message(elgg_echo("groups:notowner")); + register_error(elgg_echo("groups:notowner")); } forward($forward_url); |