diff options
author | ctrlaltca <ctrlaltca@gmail.com> | 2013-11-26 03:01:40 -0800 |
---|---|---|
committer | ctrlaltca <ctrlaltca@gmail.com> | 2013-11-26 03:01:40 -0800 |
commit | a4e4839d9f09d27b6f0cba92fad0231632b3a04d (patch) | |
tree | 2a2f353f2f7b0fd6cde035068a2036ab630f688b /framework/TApplication.php | |
parent | 2b11341614ac4a15be697fa8acad07055154ac54 (diff) | |
parent | 65adcbec2cc9a00a5b0611e34c7141bf4e6d63f7 (diff) |
Merge pull request #491 from pradosoft/jquery
Main development switch to 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) { |