From 5f2751c67261643cace2a6fce374f723a4838e34 Mon Sep 17 00:00:00 2001 From: Thomas Mueller <thomas.mueller@tmit.eu> Date: Sun, 2 Sep 2012 14:14:15 +0200 Subject: [PATCH] in some cases no translations are loaded because $this->lang is empty not null --- lib/l10n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/l10n.php b/lib/l10n.php index 4560cb7dbb..cd1d53bce0 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -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); } -- GitLab