Changeset 15136 for events/phpframework/piece_framework/trunk/web/frontend/webapp/actions/Account/SettingsAction.php
- Timestamp:
- 07/04/08 01:30:16 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/piece_framework/trunk/web/frontend/webapp/actions/Account/SettingsAction.php
r15018 r15136 53 53 { 54 54 if (is_null($this->_self)) { 55 $this->_ loginUser = $this->_context->getSession()->getAttribute('loginUser');55 $this->_self = $this->_context->getAttribute('self'); 56 56 57 $this->_self = new Phwittr_Self($this->_loginUser->id); 58 $this->_user->userName = $this->_self->userName; 59 $this->_user->email = $this->_self->email; 57 $this->_user->userName = $this->_self->userName; 58 $this->_user->email = $this->_self->email; 60 59 $this->_user->privateFlag = $this->_self->privateFlag; 61 60 } … … 67 66 $master->addForm('AccountSettings', '/account/settings'); 68 67 $master->setFormValue('AccountSettings', $this->_user); 69 70 $viewElement = $this->_context->getViewElement();71 $viewElement->setElementByRef('self', $this->_self);72 68 } 73 69 … … 80 76 81 77 try { 82 Phwittr_Account::confirmNewUserName($this->_ loginUser->id,78 Phwittr_Account::confirmNewUserName($this->_self->id, 83 79 $this->_user->userName 84 80 ); 85 Phwittr_Account::confirmNewEmail($this->_ loginUser->id,81 Phwittr_Account::confirmNewEmail($this->_self->id, 86 82 $this->_user->email 87 83 ); 88 84 85 $user = clone($this->_self); 86 $user->userName = $this->_user->userName; 87 $user->email = $this->_user->email; 88 $user->privateFlag = $this->_user->privateFlag; 89 89 90 $account = new Phwittr_Account(); 90 $account->update($ this->_user);91 $account->update($user); 91 92 92 $this->_loginUser->userName = $this->_user->userName; 93 $this->_loginUser->email = $this->_user->email; 94 $this->_loginUser->privateFlag = $this->_user->privateFlag; 95 96 $this->_context->getSession()->setAttribute('loginUser', $this->_loginUser); 97 $this->_self = new Phwittr_Self($this->_loginUser->id); 93 $this->_self->userName = $this->_user->userName; 94 $this->_self->email = $this->_user->email; 95 $this->_self->privateFlag = $this->_user->privateFlag; 98 96 99 97 return 'DisplayForm';
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)