diff options
author | Andras Laczi <laczi.andras@orc.hu> | 2013-10-14 14:48:52 +0100 |
---|---|---|
committer | Andras Laczi <laczi.andras@orc.hu> | 2013-10-14 14:48:52 +0100 |
commit | a985cc203e4a62e654424020eb5fe03023010d0c (patch) | |
tree | 6f22defee47e0f6abe2410baeb04b889fb4aea2c /framework | |
parent | 13ec702293301b1229d05a3136e3c8aceb1f8f20 (diff) |
Fixes the first-call fail of loading parameters in TParameterModule::init() when using cache
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Util/TParameterModule.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Util/TParameterModule.php b/framework/Util/TParameterModule.php index 9ab25936..5b345b4e 100644 --- a/framework/Util/TParameterModule.php +++ b/framework/Util/TParameterModule.php @@ -69,9 +69,9 @@ class TParameterModule extends TModule $cacheKey='TParameterModule:'.$this->_paramFile; if(($configFile=$cache->get($cacheKey))===false) { - $cacheFile=new TXmlDocument; - $cacheFile->loadFromFile($this->_paramFile); - $cache->set($cacheKey,$cacheFile,0,new TFileCacheDependency($this->_paramFile)); + $configFile=new TXmlDocument; + $configFile->loadFromFile($this->_paramFile); + $cache->set($cacheKey,$configFile,0,new TFileCacheDependency($this->_paramFile)); } } else |