Changeset 15136 for events/phpframework/piece_framework/trunk/web/frontend/webapp/actions/Account/PictureAction.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/PictureAction.php
r15019 r15136 52 52 { 53 53 if (is_null($this->_self)) { 54 $loginUser = $this->_context->getSession()->getAttribute('loginUser'); 55 $this->_self = new Phwittr_Self($loginUser->id); 54 $this->_self = $this->_context->getAttribute('self'); 56 55 } 57 56 } … … 61 60 $master = new Piece_Unity_Service_Runemaster(); 62 61 $master->addForm('AccountPicture', '/account/picture', true, true); 63 64 $viewElement = $this->_context->getViewElement();65 $viewElement->setElementByRef('self', $this->_self);66 62 } 67 63 … … 83 79 84 80 Phwittr_Account::updatePicture($this->_self->id, $saveFilePath); 85 unset($this->_self); 86 $this->_self = null; 81 82 $selfId = $this->_self->id; 83 $this->_self = new Phwittr_Self($selfId); 84 85 $this->_context->getSession()->setAttributeByRef('self', $this->_self); 86 $this->_context->getViewElement()->setElementByRef('self', $this->_self); 87 87 88 88 return 'DisplayForm';
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)