diff options
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/TCachePageStatePersister.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/Web/UI/TCachePageStatePersister.php b/framework/Web/UI/TCachePageStatePersister.php index 62c2bc60..0377175a 100644 --- a/framework/Web/UI/TCachePageStatePersister.php +++ b/framework/Web/UI/TCachePageStatePersister.php @@ -4,7 +4,7 @@ *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
- * @copyright Copyright © 2005-2011 PradoSoft + * @copyright Copyright © 2005-2011 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
* @package System.Web.UI
@@ -173,9 +173,8 @@ class TCachePageStatePersister extends TComponent implements IPageStatePersister * Saves state in cache.
* @param mixed state to be stored
*/
- public function save($state)
+ public function save($data)
{
- $data=serialize($state);
$timestamp=(string)microtime(true);
$key=$this->calculateKey($timestamp);
$this->getCache()->add($key,$data,$this->_timeout);
@@ -193,7 +192,7 @@ class TCachePageStatePersister extends TComponent implements IPageStatePersister {
$key=$this->calculateKey($timestamp);
if(($data=$this->getCache()->get($key))!==false)
- return unserialize($data);
+ return $data;
}
throw new THttpException(400,'cachepagestatepersister_pagestate_corrupted');
}
|