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/I18N/Translation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/I18N/Translation.php') diff --git a/framework/I18N/Translation.php b/framework/I18N/Translation.php index 4e244a49..f22a68f0 100644 --- a/framework/I18N/Translation.php +++ b/framework/I18N/Translation.php @@ -51,7 +51,7 @@ class Translation extends TComponent $source->setCulture($app->getCulture()); - if(TPropertyValue::ensureBoolean($config['cache'])) + if(isset($config['cache'])) $source->setCache(new MessageCache($config['cache'])); self::$formatters[$catalogue] = new MessageFormat($source, $app->getCharset()); -- cgit v1.2.3