aboutsummaryrefslogtreecommitdiff
path: root/actions/user/name.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/user/name.php')
-rw-r--r--actions/user/name.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/user/name.php b/actions/user/name.php
index b93c804b3..5bda16ebc 100644
--- a/actions/user/name.php
+++ b/actions/user/name.php
@@ -30,10 +30,10 @@
if ($user->save())
system_message(elgg_echo('user:name:success'));
else
- system_message(elgg_echo('user:name:fail'));
+ register_error(elgg_echo('user:name:fail'));
}
else
- system_message(elgg_echo('user:name:fail'));
+ register_error(elgg_echo('user:name:fail'));
//forward($_SERVER['HTTP_REFERER']);
//exit;