aboutsummaryrefslogtreecommitdiff
path: root/actions/user
diff options
context:
space:
mode:
Diffstat (limited to 'actions/user')
-rw-r--r--actions/user/language.php4
-rw-r--r--actions/user/name.php4
-rw-r--r--actions/user/password.php6
3 files changed, 7 insertions, 7 deletions
diff --git a/actions/user/language.php b/actions/user/language.php
index f0b91791e..77168cd34 100644
--- a/actions/user/language.php
+++ b/actions/user/language.php
@@ -30,10 +30,10 @@
if ($user->save())
system_message(elgg_echo('user:language:success'));
else
- system_message(elgg_echo('user:language:fail'));
+ register_error(elgg_echo('user:language:fail'));
}
else
- system_message(elgg_echo('user:language:fail'));
+ register_error(elgg_echo('user:language:fail'));
//forward($_SERVER['HTTP_REFERER']);
//exit;
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;
diff --git a/actions/user/password.php b/actions/user/password.php
index ec3252644..c53188a00 100644
--- a/actions/user/password.php
+++ b/actions/user/password.php
@@ -35,13 +35,13 @@
if ($user->save())
system_message(elgg_echo('user:password:success'));
else
- system_message(elgg_echo('user:password:fail'));
+ register_error(elgg_echo('user:password:fail'));
}
else
- system_message(elgg_echo('user:password:fail:notsame'));
+ register_error(elgg_echo('user:password:fail:notsame'));
}
else
- system_message(elgg_echo('user:password:fail:tooshort'));
+ register_error(elgg_echo('user:password:fail:tooshort'));
}
//forward($_SERVER['HTTP_REFERER']);