forked from GNUsocial/gnu-social
more debugging
darcs-hash:20080622153754-34904-b722aa6d0ffa52242b06a8eec1eaa5216d216a4f.gz
This commit is contained in:
parent
1cab6c7d50
commit
0239802682
@ -110,17 +110,18 @@ class ProfilesettingsAction extends SettingsAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$user = common_current_user();
|
$user = common_current_user();
|
||||||
assert(!is_null($user)); # should already be checked
|
|
||||||
|
|
||||||
$user->query('BEGIN');
|
$user->query('BEGIN');
|
||||||
|
|
||||||
if (strcmp($user->nickname, $nickname) != 0) {
|
if (strcmp($user->nickname, $nickname) != 0) {
|
||||||
|
|
||||||
|
common_debug('Updating user nickname from ' . $user->nickname . ' to ' . $nickname,
|
||||||
|
__FILE__);
|
||||||
|
|
||||||
$original = clone($user);
|
$original = clone($user);
|
||||||
|
|
||||||
$user->nickname = $nickname;
|
$user->nickname = $nickname;
|
||||||
|
|
||||||
common_debug('Old nickname = ' . $original->nickname . ', new nickname = ' . $user->nickname, __FILE__);
|
|
||||||
|
|
||||||
$result = $user->updateKeys($original);
|
$result = $user->updateKeys($original);
|
||||||
|
|
||||||
if ($result === FALSE) {
|
if ($result === FALSE) {
|
||||||
@ -132,6 +133,9 @@ class ProfilesettingsAction extends SettingsAction {
|
|||||||
|
|
||||||
if (strcmp($user->email, $email) != 0) {
|
if (strcmp($user->email, $email) != 0) {
|
||||||
|
|
||||||
|
common_debug('Updating user email from ' . $user->nickname . ' to ' . $nickname,
|
||||||
|
__FILE__);
|
||||||
|
|
||||||
# We don't update email directly; it gets done by confirmemail
|
# We don't update email directly; it gets done by confirmemail
|
||||||
|
|
||||||
$confirm = new Confirm_email();
|
$confirm = new Confirm_email();
|
||||||
|
Loading…
Reference in New Issue
Block a user