Skip to content

Commit 8d21c68

Browse files
committed
fix(settings): use correct scope for translations
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 894f963 commit 8d21c68

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/settings/lib/SetupChecks/MimeTypeMigrationAvailable.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,19 @@
88
*/
99
namespace OCA\Settings\SetupChecks;
1010

11+
use OC\L10N\L10N;
1112
use OC\Repair\RepairMimeTypes;
1213
use OCP\IL10N;
1314
use OCP\L10N\IFactory;
1415
use OCP\SetupCheck\ISetupCheck;
1516
use OCP\SetupCheck\SetupResult;
1617

1718
class MimeTypeMigrationAvailable implements ISetupCheck {
18-
private IL10N $l10n;
1919

2020
public function __construct(
21-
IFactory $l10nFactory,
2221
private RepairMimeTypes $repairMimeTypes,
22+
private L10N $l10n,
2323
) {
24-
$this->l10n = $l10nFactory->get('core');
2524
}
2625

2726
public function getCategory(): string {

0 commit comments

Comments
 (0)