aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/util.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-28 21:46:28 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-28 21:46:28 +0200
commit740659a04c28f8b2bfd9265d459dd3bca202300f (patch)
treed800c3896184bdfc00333f4067c4d567b8ab6d4b /lib/private/legacy/util.php
parentf2cae3cee127220a5fde2726af8074837ee81ed1 (diff)
downloadnextcloud-server-740659a04c28f8b2bfd9265d459dd3bca202300f.tar.gz
nextcloud-server-740659a04c28f8b2bfd9265d459dd3bca202300f.zip
Move away from OC_L10N
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/legacy/util.php')
-rw-r--r--lib/private/legacy/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index 42fd0ba7db3..e4c2caeafd7 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -526,7 +526,7 @@ class OC_Util {
*/
public static function addTranslations($application, $languageCode = null, $prepend = false) {
if (is_null($languageCode)) {
- $languageCode = \OC_L10N::findLanguage($application);
+ $languageCode = \OC::$server->getL10NFactory()->findLanguage($application);
}
if (!empty($application)) {
$path = "$application/l10n/$languageCode";