summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-07-18 09:01:53 +0000
committerctrlaltca@gmail.com <>2011-07-18 09:01:53 +0000
commitd9c99cddd56908d5466956c50b240c9fe4dc98e5 (patch)
tree593c144d3eee0153b7ac3b85f1aa861aefae3880 /framework/Web/UI
parent348bd9d3987c42b9204519b22b7238e8dc19e514 (diff)
missed a file in r3018, sorry
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/TCachePageStatePersister.php7
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 &copy; 2005-2011 PradoSoft
+ * @copyright Copyright &copy; 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');
}