Skip to content

Commit

Permalink
Fetch proper translations
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rullzer committed Mar 22, 2019
1 parent b1b2378 commit 7b99c9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/private/Settings/Admin/Sharing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 7b99c9d

Please sign in to comment.