aboutsummaryrefslogtreecommitdiff
path: root/actions/profile/edit.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-27 21:34:41 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-27 21:34:41 -0500
commitd51459b56adaea48eb50ba9d6ef140751077de74 (patch)
tree50afa8e3cb16fa2764bcd10f42dd220ec6c4df65 /actions/profile/edit.php
parent65afed116e377c5a17bd6faf278ae9b71dd5abdf (diff)
downloadelgg-d51459b56adaea48eb50ba9d6ef140751077de74.tar.gz
elgg-d51459b56adaea48eb50ba9d6ef140751077de74.tar.bz2
Fixes #3953 adds back the ability to change display name from settings page
Diffstat (limited to 'actions/profile/edit.php')
-rw-r--r--actions/profile/edit.php7
1 files changed, 1 insertions, 6 deletions
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();
}
}