mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 19:36:08 +01:00
Simply fall back to en if no admin language set. - #641
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.1.0-rc.3
|
||||
## xx/xx/2016
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fall back to english for UI language if admin's language is not set [#641](https://github.com/getgrav/grav-plugin-admin/issues/641)
|
||||
|
||||
# v1.1.0-rc.2
|
||||
## 06/02/2016
|
||||
|
||||
|
||||
@@ -953,7 +953,7 @@ class Admin
|
||||
}
|
||||
|
||||
if (!$languages) {
|
||||
$languages = [$this->grav['user']->authenticated ? $this->grav['user']->language : ($this->grav['language']->getLanguage() ?: 'en')];
|
||||
$languages = [$this->grav['user']->authenticated ? $this->grav['user']->language : 'en'];
|
||||
} else {
|
||||
$languages = (array) $languages;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user