From 7b99c9d93789c558d98771cb8c43be6f26fa3075 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 22 Mar 2019 09:46:41 +0100 Subject: [PATCH] Fetch proper translations Fixes #14793 This is caused by the mess we have with OC\Settings mapping to settings and lib/private/Settings. Anyway this is the quick fix. Moving stuff around for 17 seems better. Signed-off-by: Roeland Jago Douma --- lib/private/Settings/Admin/Sharing.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/private/Settings/Admin/Sharing.php b/lib/private/Settings/Admin/Sharing.php index ee6a64c85bfbc..a044d314b0476 100644 --- a/lib/private/Settings/Admin/Sharing.php +++ b/lib/private/Settings/Admin/Sharing.php @@ -31,6 +31,7 @@ use OCP\Constants; use OCP\IConfig; use OCP\IL10N; +use OCP\L10N\IFactory; use OCP\Settings\ISettings; use OCP\Share\IManager; use OCP\Util; @@ -48,9 +49,9 @@ class Sharing implements ISettings { /** * @param IConfig $config */ - public function __construct(IConfig $config, IL10N $l, IManager $shareManager) { + public function __construct(IConfig $config, IFactory $l, IManager $shareManager) { $this->config = $config; - $this->l = $l; + $this->l = $l->get('lib'); $this->shareManager = $shareManager; }