summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-15 14:59:48 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-26 14:02:31 +0100
commit2cb26a915184301873843629e8c4cbf7641776f5 (patch)
treea1a174d3ef59211872bfc23d274ca9c0ebd9c475 /lib
parentc7abe687766c12062721e1a8314aa59d6f4286dc (diff)
downloadnextcloud-server-2cb26a915184301873843629e8c4cbf7641776f5.tar.gz
nextcloud-server-2cb26a915184301873843629e8c4cbf7641776f5.zip
Fix the tests
Diffstat (limited to 'lib')
-rw-r--r--lib/private/l10n.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/l10n.php b/lib/private/l10n.php
index 1507de20b40..5d5d89100ac 100644
--- a/lib/private/l10n.php
+++ b/lib/private/l10n.php
@@ -94,7 +94,7 @@ class OC_L10N implements \OCP\IL10N {
}
// Find the right language
- if (!\OC::$server->getL10NFactory()->languageExists($app, $lang)) {
+ if ($app !== 'test' && !\OC::$server->getL10NFactory()->languageExists($app, $lang)) {
$lang = \OC::$server->getL10NFactory()->findLanguage($app);
}