From cdd5fa899d747c20cc4de20d713d247946940739 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 11 Jul 2008 10:54:58 +0000 Subject: Using register_error on errors rather than system_message. Also, fixed widget save to handle arrays (Refs #135) git-svn-id: https://code.elgg.org/elgg/trunk@1400 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/user/password.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actions/user/password.php') 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']); -- cgit v1.2.3