Prevent crash when no locales are enabled

This commit is contained in:
Toby Zerner 2015-10-16 14:02:09 +10:30
parent 9e7c30044a
commit 6cc3dd4dea

View File

@ -157,7 +157,7 @@ abstract class AbstractClientController extends AbstractHtmlController
);
if ($localeCompiler) {
$translations = $this->locales->getTranslator()->getMessages()['messages'];
$translations = array_get($this->locales->getTranslator()->getMessages(), 'messages', []);
$translations = $this->filterTranslations($translations, $keys);