diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-05-30 18:42:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-30 18:42:43 +0200 |
commit | 5c3619c899951534d37b2970b2d0c1bf19866db2 (patch) | |
tree | 9f8b3d760bc45f6f1b875f6954cb618474090681 /lib/public/Util.php | |
parent | 84d40a76f966e7e487de5cad9cd3e27baaf44fcc (diff) | |
parent | 5866e49b3ab5cb346631fb3b557be951144c7ac2 (diff) | |
download | nextcloud-server-5c3619c899951534d37b2970b2d0c1bf19866db2.tar.gz nextcloud-server-5c3619c899951534d37b2970b2d0c1bf19866db2.zip |
Merge branch 'master' into refactor/OC-Server-getCsrfTokenManager
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r-- | lib/public/Util.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php index c1ee5036347..4cee9addf10 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -14,6 +14,7 @@ use bantu\IniGetWrapper\IniGetWrapper; use OC\AppScriptDependency; use OC\AppScriptSort; use OC\Security\CSRF\CsrfTokenManager; +use OCP\L10N\IFactory; use OCP\Mail\IMailer; use OCP\Share\IManager; use Psr\Container\ContainerExceptionInterface; @@ -208,7 +209,7 @@ class Util { */ public static function addTranslations($application, $languageCode = null, $init = false) { if (is_null($languageCode)) { - $languageCode = \OC::$server->getL10NFactory()->findLanguage($application); + $languageCode = \OC::$server->get(IFactory::class)->findLanguage($application); } if (!empty($application)) { $path = "$application/l10n/$languageCode"; |