Changeset 1512 for branches/3.0

Show
Ignore:
Timestamp:
11/26/2006 08:53:30 AM (2 years ago)
Author:
xue
Message:

Fixed the bug that global state was not saved when redirect() is invoked

Location:
branches/3.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/3.0/HISTORY

    r1511 r1512  
    44BUG: Ticket#467 - typo in TUrlMapping.php (Qiang) 
    55BUG: TTableCell should render   only when Text is not set and there's no child (Qiang) 
     6BUG: global state was not saved when redirect() is invoked (Qiang) 
    67ENH: Ticket#446 - Added TMetaTagCollection.getMetaTagByID method (Qiang) 
    78CHG: Ticket#437 - __autoload is replaced by spl_autoload_register (Qiang) 
  • branches/3.0/framework/TApplication.php

    r1497 r1512  
    437437        protected function saveGlobals() 
    438438        { 
    439                 if(!$this->_stateChanged) 
    440                         return; 
    441                 $this->getApplicationStatePersister()->save($this->_globals); 
     439                if($this->_stateChanged) 
     440                { 
     441                        $this->_stateChanged=false; 
     442                        $this->getApplicationStatePersister()->save($this->_globals); 
     443                } 
    442444        } 
    443445 
     
    10351037        public function onEndRequest() 
    10361038        { 
     1039                $this->saveGlobals();  // save global state 
    10371040                $this->raiseEvent('OnEndRequest',$this,null); 
    10381041        }