mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 13:07:25 +02:00
Merge pull request #235 from flaviocopes/patch-3
Force english in admin
This commit is contained in:
@@ -295,7 +295,10 @@ class Language
|
||||
|
||||
|
||||
if ($this->config->get('system.languages.translations', true)) {
|
||||
if ($this->enabled() && $lookup) {
|
||||
|
||||
if (isset($this->grav['admin'])) {
|
||||
$languages = ['en'];
|
||||
} elseif ($this->enabled() && $lookup) {
|
||||
if (empty($languages)) {
|
||||
if ($this->config->get('system.languages.translations_fallback', true)) {
|
||||
$languages = $this->getFallbackLanguages();
|
||||
|
||||
Reference in New Issue
Block a user