diff options
author | ctrlaltca <ctrlaltca@gmail.com> | 2016-06-15 21:32:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-15 21:32:16 +0200 |
commit | f8799b189619993720c5e2689a83637e9eaa884f (patch) | |
tree | 9fc558eaa5a80bd7c45858d286ad48587e5e30a7 /framework/I18N/Translation.php | |
parent | 2c49016d384559bdd304d37f85e7c696dd33fd9b (diff) | |
parent | 87cdee402bf6766a061fa926528c5bcc51957bbb (diff) |
Merge pull request #599 from emkael/master
Allowing translation message cache to be initialized (and used)
Diffstat (limited to 'framework/I18N/Translation.php')
-rw-r--r-- | framework/I18N/Translation.php | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |