]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use the l10n from settings
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 3 Feb 2020 08:44:59 +0000 (09:44 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 3 Feb 2020 08:44:59 +0000 (09:44 +0100)
Fixes #19261

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/settings/lib/Settings/Admin/Sharing.php

index c151e7be4e1adaa479df090c740ebdec09e57106..495af9d53752bcc82467aeea93da1e371044990f 100644 (file)
@@ -52,9 +52,9 @@ class Sharing implements ISettings {
        /**
         * @param IConfig $config
         */
-       public function __construct(IConfig $config, IFactory $l, IManager $shareManager) {
+       public function __construct(IConfig $config, IL10N $l, IManager $shareManager) {
                $this->config = $config;
-               $this->l = $l->get('lib');
+               $this->l = $l;
                $this->shareManager = $shareManager;
        }