]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
try to fix updating in profile
authorEvan Prodromou <evan@prodromou.name>
Mon, 19 May 2008 12:24:45 +0000 (08:24 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 19 May 2008 12:24:45 +0000 (08:24 -0400)
darcs-hash:20080519122445-84dde-b6505e0b8ea310eee50eb6e638238fb7cf93bead.gz

actions/login.php
actions/profilesettings.php
doc/TODO

index 293d07faed91f027fd3263bf45a276b28ad178a7..c9d887300140f2cd94014fab1346de62a986b277 100644 (file)
@@ -80,5 +80,6 @@ class LoginAction extends Action {
                                                                          'id' => 'cancel',
                                                                          'value' => _t('Cancel')));
                common_element_end('form');
+               common_show_footer();
        }
 }
index f1f4844d1946d8f6d2c95286a7d5404f5233f117..fc06c5a188212c8a7d63009b7cb45ab0cac81729 100644 (file)
@@ -67,11 +67,13 @@ class ProfilesettingsAction extends SettingsAction {
                
                # FIXME: scrub input
                # FIXME: transaction!
+
+               $original = clone($user);
                
                $user->nickname = $this->arg('nickname');
                $user->email = $this->arg('email');
                
-               if (!$user->update()) {
+               if (!$user->update($original)) {
                        common_server_error(_t('Couldnt update user.'));
                        return;
                }
index a7ee33ee50cc0c74956697cd5ab41406d5a92596..4fd330461a0e683886c9db913d566a9091dd63e1 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -94,6 +94,8 @@
 - receive notices from mobile phone
 - machine tags
 - release 0.5
+- Twitter-compatible API
+- Pownce-compatible API
 - include twitter subscriptions
 - include Pownce subscriptions
 - privacy