summaryrefslogtreecommitdiffstats
path: root/lib/private/L10N/Factory.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-04 08:28:13 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-04 08:28:13 +0200
commit9fbb8ce302bdc06621c7f22d09b3a672758b34cd (patch)
tree5c58e534a0aeccefae77affc374327f7c686cd6c /lib/private/L10N/Factory.php
parentadf7e7295ed94a04bd9fcb056b81e664b45b4f07 (diff)
downloadnextcloud-server-9fbb8ce302bdc06621c7f22d09b3a672758b34cd.tar.gz
nextcloud-server-9fbb8ce302bdc06621c7f22d09b3a672758b34cd.zip
Do not save the language as request lang for apps when we didn't find any
Diffstat (limited to 'lib/private/L10N/Factory.php')
-rw-r--r--lib/private/L10N/Factory.php2
1 files changed, 1 insertions, 1 deletions
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