try to fix updating in profile
darcs-hash:20080519122445-84dde-b6505e0b8ea310eee50eb6e638238fb7cf93bead.gz
This commit is contained in:
parent
88483fe3b8
commit
2080f52cb1
@ -80,5 +80,6 @@ class LoginAction extends Action {
|
|||||||
'id' => 'cancel',
|
'id' => 'cancel',
|
||||||
'value' => _t('Cancel')));
|
'value' => _t('Cancel')));
|
||||||
common_element_end('form');
|
common_element_end('form');
|
||||||
|
common_show_footer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,10 +68,12 @@ class ProfilesettingsAction extends SettingsAction {
|
|||||||
# FIXME: scrub input
|
# FIXME: scrub input
|
||||||
# FIXME: transaction!
|
# FIXME: transaction!
|
||||||
|
|
||||||
|
$original = clone($user);
|
||||||
|
|
||||||
$user->nickname = $this->arg('nickname');
|
$user->nickname = $this->arg('nickname');
|
||||||
$user->email = $this->arg('email');
|
$user->email = $this->arg('email');
|
||||||
|
|
||||||
if (!$user->update()) {
|
if (!$user->update($original)) {
|
||||||
common_server_error(_t('Couldnt update user.'));
|
common_server_error(_t('Couldnt update user.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
2
doc/TODO
2
doc/TODO
@ -94,6 +94,8 @@
|
|||||||
- receive notices from mobile phone
|
- receive notices from mobile phone
|
||||||
- machine tags
|
- machine tags
|
||||||
- release 0.5
|
- release 0.5
|
||||||
|
- Twitter-compatible API
|
||||||
|
- Pownce-compatible API
|
||||||
- include twitter subscriptions
|
- include twitter subscriptions
|
||||||
- include Pownce subscriptions
|
- include Pownce subscriptions
|
||||||
- privacy
|
- privacy
|
||||||
|
Loading…
Reference in New Issue
Block a user