mirror of
https://github.com/nextcloud/server.git
synced 2024-07-26 06:14:59 +02:00
in some cases no translations are loaded because $this->lang is empty not null
This commit is contained in:
parent
3c784ede83
commit
5f2751c672
@ -99,7 +99,7 @@ class OC_L10N{
|
||||
$lang = $this->lang;
|
||||
$this->app = true;
|
||||
// Find the right language
|
||||
if(is_null($lang)){
|
||||
if(is_null($lang) || $lang == '') {
|
||||
$lang = self::findLanguage($app);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user