diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | framework/TApplication.php | 9 |
2 files changed, 7 insertions, 3 deletions
@@ -3,6 +3,7 @@ Version 3.0.6 December 4, 2006 BUG: Ticket#442 - TPageService getBasePath in namespace form (Qiang) BUG: Ticket#467 - typo in TUrlMapping.php (Qiang) BUG: TTableCell should render only when Text is not set and there's no child (Qiang) +BUG: global state was not saved when redirect() is invoked (Qiang) ENH: Ticket#446 - Added TMetaTagCollection.getMetaTagByID method (Qiang) CHG: Ticket#437 - __autoload is replaced by spl_autoload_register (Qiang) CHG: Ticket#454 - Redundant PHP Version Check (Qiang) diff --git a/framework/TApplication.php b/framework/TApplication.php index 4091ceb8..ba3d3551 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -436,9 +436,11 @@ class TApplication extends TComponent */ protected function saveGlobals() { - if(!$this->_stateChanged) - return; - $this->getApplicationStatePersister()->save($this->_globals); + if($this->_stateChanged) + { + $this->_stateChanged=false; + $this->getApplicationStatePersister()->save($this->_globals); + } } /** @@ -1034,6 +1036,7 @@ class TApplication extends TComponent */ public function onEndRequest() { + $this->saveGlobals(); // save global state $this->raiseEvent('OnEndRequest',$this,null); } } |