From 4a151030205c2e3bbdf609472627843040270b50 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 27 Nov 2011 21:34:41 -0500 Subject: Fixes #3953 adds back the ability to change display name from settings page --- actions/profile/edit.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'actions') diff --git a/actions/profile/edit.php b/actions/profile/edit.php index e86053b07..8ca60f246 100644 --- a/actions/profile/edit.php +++ b/actions/profile/edit.php @@ -62,12 +62,7 @@ if ($name) { register_error(elgg_echo('user:name:fail')); } elseif ($owner->name != $name) { $owner->name = $name; - // @todo this is weird...giving two notifications? - if ($owner->save()) { - system_message(elgg_echo('user:name:success')); - } else { - register_error(elgg_echo('user:name:fail')); - } + $owner->save(); } } -- cgit v1.2.3