summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Laczi <laczi.andras@orc.hu>2013-10-14 14:48:52 +0100
committerAndras Laczi <laczi.andras@orc.hu>2013-10-14 14:48:52 +0100
commita985cc203e4a62e654424020eb5fe03023010d0c (patch)
tree6f22defee47e0f6abe2410baeb04b889fb4aea2c
parent13ec702293301b1229d05a3136e3c8aceb1f8f20 (diff)
Fixes the first-call fail of loading parameters in TParameterModule::init() when using cache
-rw-r--r--framework/Util/TParameterModule.php6
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