try to fix updating in profile

darcs-hash:20080519122445-84dde-b6505e0b8ea310eee50eb6e638238fb7cf93bead.gz
This commit is contained in:
Evan Prodromou 2008-05-19 08:24:45 -04:00
parent 88483fe3b8
commit 2080f52cb1
3 changed files with 6 additions and 1 deletions

View File

@ -80,5 +80,6 @@ class LoginAction extends Action {
'id' => 'cancel',
'value' => _t('Cancel')));
common_element_end('form');
common_show_footer();
}
}

View File

@ -68,10 +68,12 @@ 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;
}

View File

@ -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