From 9fbb8ce302bdc06621c7f22d09b3a672758b34cd Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 4 May 2016 08:28:13 +0200 Subject: Do not save the language as request lang for apps when we didn't find any --- lib/private/L10N/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private') diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php index 8f157d9c0bb..08b92657a1b 100644 --- a/lib/private/L10N/Factory.php +++ b/lib/private/L10N/Factory.php @@ -263,7 +263,7 @@ class Factory implements IFactory { } } - if (!$this->requestLanguage) { + if ($app === null && !$this->requestLanguage) { $this->requestLanguage = 'en'; } return 'en'; // Last try: English -- cgit v1.2.3