From 87cdee402bf6766a061fa926528c5bcc51957bbb Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 8 Jun 2016 16:21:13 +0200 Subject: Allowing translation message cache to be initialized (and used) --- framework/pradolite.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'framework/pradolite.php') diff --git a/framework/pradolite.php b/framework/pradolite.php index 04ecec4c..6b514845 100644 --- a/framework/pradolite.php +++ b/framework/pradolite.php @@ -1,7 +1,7 @@ _rf[self::RF_NAMED_OBJECTS][$name])) { + return true; + } else { + return parent::__isset($name); + } + } public function getHasAdapter() { return isset($this->_rf[self::RF_ADAPTER]); @@ -10287,7 +10294,7 @@ class TGlobalization extends TModule throw new TConfigurationException("invalid source dir '{$config['source']}'"); } } - if($config['cache']) + if(isset($config['cache']) && TPropertyValue::ensureBoolean($config['cache'])) { $config['cache'] = $this->getApplication()->getRunTimePath().'/i18n'; if(!is_dir($config['cache'])) @@ -10297,6 +10304,10 @@ class TGlobalization extends TModule $config['cache']); chmod($config['cache'], PRADO_CHMOD); } } + else + { + unset($config['cache']); + } $this->_translation = $config; } public function getTranslationCatalogue() -- cgit v1.2.3