diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-11-26 11:43:27 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-11-26 11:43:27 +0100 |
commit | 65adcbec2cc9a00a5b0611e34c7141bf4e6d63f7 (patch) | |
tree | 2a2f353f2f7b0fd6cde035068a2036ab630f688b /framework/TApplication.php | |
parent | a1983c5f49f5ec95da2d3848a0250771a870534d (diff) | |
parent | 5632770c86d30361fe0c3eefc7d327786b478702 (diff) |
Merge branch 'jquery' of https://github.com/pradosoft/prado into jquery
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index 7769a9e0..d7aac218 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -1071,10 +1071,10 @@ class TApplication extends TComponent $config=new TApplicationConfiguration; $config->loadFromFile($this->_configFile); if($this->_cacheFile!==null) - file_put_contents($this->_cacheFile,Prado::serialize($config),LOCK_EX); + file_put_contents($this->_cacheFile,serialize($config),LOCK_EX); } else - $config=Prado::unserialize(file_get_contents($this->_cacheFile)); + $config=unserialize(file_get_contents($this->_cacheFile)); $this->applyConfiguration($config,false); } @@ -1844,11 +1844,11 @@ class TApplicationStatePersister extends TModule implements IStatePersister public function load() { if(($cache=$this->getApplication()->getCache())!==null && ($value=$cache->get(self::CACHE_NAME))!==false) - return Prado::unserialize($value); + return unserialize($value); else { if(($content=@file_get_contents($this->getStateFilePath()))!==false) - return Prado::unserialize($content); + return unserialize($content); else return null; } @@ -1860,7 +1860,7 @@ class TApplicationStatePersister extends TModule implements IStatePersister */ public function save($state) { - $content=Prado::serialize($state); + $content=serialize($state); $saveFile=true; if(($cache=$this->getApplication()->getCache())!==null) { |