From 817d6fd42eb3ac0d1ee9a73fe5e5a4b1ec21da05 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 8 Jun 2016 17:18:30 +0200 Subject: * r87cdee4 from emkael/prado --- lib/prado/framework/I18N/TGlobalization.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/prado/framework/I18N/TGlobalization.php') diff --git a/lib/prado/framework/I18N/TGlobalization.php b/lib/prado/framework/I18N/TGlobalization.php index 41c89c1..2965ad1 100644 --- a/lib/prado/framework/I18N/TGlobalization.php +++ b/lib/prado/framework/I18N/TGlobalization.php @@ -214,7 +214,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'])) @@ -225,6 +225,10 @@ class TGlobalization extends TModule chmod($config['cache'], PRADO_CHMOD); //make it deletable } } + else + { + unset($config['cache']); + } $this->_translation = $config; } @@ -294,4 +298,3 @@ class TGlobalization extends TModule } } - -- cgit v1.2.3