From f466a68c0f9cda97d3dad3a52af6265df9aa8d25 Mon Sep 17 00:00:00 2001 From: carlgmathisen <> Date: Sat, 27 Dec 2008 00:08:04 +0000 Subject: Issue 83 - TParameterModule --- framework/Util/TParameterModule.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Util') diff --git a/framework/Util/TParameterModule.php b/framework/Util/TParameterModule.php index bd8414ea..0109ca32 100644 --- a/framework/Util/TParameterModule.php +++ b/framework/Util/TParameterModule.php @@ -67,11 +67,11 @@ class TParameterModule extends TModule if($this->getApplication()->getConfigurationType()==TApplication::CONFIG_TYPE_XML && ($cache=$this->getApplication()->getCache())!==null) { $cacheKey='TParameterModule:'.$this->_paramFile; - if(($dom=$cache->get($cacheKey))===false) + if(($configFile=$cache->get($cacheKey))===false) { - $dom=new TXmlDocument; - $dom->loadFromFile($this->_paramFile); - $cache->set($cacheKey,$dom,0,new TFileCacheDependency($this->_paramFile)); + $cacheFile=new TXmlDocument; + $cacheFile->loadFromFile($this->_paramFile); + $cache->set($cacheKey,$cacheFile,0,new TFileCacheDependency($this->_paramFile)); } } else -- cgit v1.2.3