]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/profilesettings.php
debugging for addopenid problem
[quix0rs-gnu-social.git] / actions / profilesettings.php
index 22a7fbac1977c56197d1e3b91f665b1e7871e7d6..a5682b23bd7049fa0dbadea25eb801212a8992c1 100644 (file)
@@ -112,7 +112,10 @@ class ProfilesettingsAction extends SettingsAction {
                $user->nickname = $nickname;
                $user->email = $email;
 
-               if (!$user->update($original)) {
+               common_debug('Updating, nickname ="'.$user->nickname.'" and email ="'.$user->email.'"');
+               common_debug('Original, nickname ="'.$original->nickname.'" and email ="'.$original->email.'"');
+               
+               if (FALSE === $user->update($original)) {
                        common_server_error(_t('Couldnt update user.'));
                        return;
                }
@@ -133,6 +136,8 @@ class ProfilesettingsAction extends SettingsAction {
                        return;
                }
 
+               common_broadcast_profile($profile);
+               
                $this->show_form(_t('Settings saved.'), TRUE);
        }