1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 18:51:40 +02:00

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) { if ($localeCompiler) {
$translations = $this->locales->getTranslator()->getMessages()['messages']; $translations = array_get($this->locales->getTranslator()->getMessages(), 'messages', []);
$translations = $this->filterTranslations($translations, $keys); $translations = $this->filterTranslations($translations, $keys);