diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-03-22 09:46:41 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-03-25 09:10:54 +0100 |
commit | a7fb71f908f081d941981a62ed80e8bf58c15c07 (patch) | |
tree | feb2aedb45725350a7bc813e42b1edec6865c2bd /lib/private/Settings | |
parent | 4785faed0bbc1da9c6d1daabbcf8398fba2c3fb1 (diff) | |
download | nextcloud-server-a7fb71f908f081d941981a62ed80e8bf58c15c07.tar.gz nextcloud-server-a7fb71f908f081d941981a62ed80e8bf58c15c07.zip |
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 <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Settings')
-rw-r--r-- | lib/private/Settings/Admin/Sharing.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Settings/Admin/Sharing.php b/lib/private/Settings/Admin/Sharing.php index ee6a64c85bf..a044d314b04 100644 --- a/lib/private/Settings/Admin/Sharing.php +++ b/lib/private/Settings/Admin/Sharing.php @@ -31,6 +31,7 @@ use OCP\AppFramework\Http\TemplateResponse; 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; } |