diff options
author | carlgmathisen <> | 2008-12-27 00:08:04 +0000 |
---|---|---|
committer | carlgmathisen <> | 2008-12-27 00:08:04 +0000 |
commit | f466a68c0f9cda97d3dad3a52af6265df9aa8d25 (patch) | |
tree | fb86e98e940353c6e2eb935502883aed6cacbf68 | |
parent | 7aeee6e122427cc207364971560bde78ef173cf0 (diff) |
Issue 83 - TParameterModule
-rw-r--r-- | framework/Util/TParameterModule.php | 8 |
1 files changed, 4 insertions, 4 deletions
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
|