summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/TApplication.php2
-rw-r--r--framework/Web/UI/TCachePageStatePersister.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 0a028141..679d5632 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -1676,7 +1676,7 @@ class TApplicationConfiguration extends TComponent
if(!isset($parameter['value'])) {
$this->_parameters[$id]=array('type'=>1, 'value' => $parameter, 'final' => $final);
} else {
- $this->_parameters[$id]=array('type'=>2, 'value' => $value, 'final' => $final);
+ $this->_parameters[$id]=array('type'=>2, 'value' => $parameter['value'], 'final' => $final);
}
}
}
diff --git a/framework/Web/UI/TCachePageStatePersister.php b/framework/Web/UI/TCachePageStatePersister.php
index 742bd687..a9637e87 100644
--- a/framework/Web/UI/TCachePageStatePersister.php
+++ b/framework/Web/UI/TCachePageStatePersister.php
@@ -111,7 +111,7 @@ class TCachePageStatePersister extends TComponent implements IPageStatePersister
$cache=Prado::getApplication()->getCache();
if($cache===null || !($cache instanceof ICache))
{
- if($this->_cacheModule!=='')
+ if($this->_cacheModuleID!=='')
throw new TConfigurationException('cachepagestatepersister_cachemoduleid_invalid',$this->_cacheModuleID);
else
throw new TConfigurationException('cachepagestatepersister_cache_required');