Skip to content

Commit 0efd05a

Browse files
authored
Merge pull request #53695 from nextcloud/fix/settings-l10n
fix(settings): use correct scope for translations
2 parents 08b58a2 + b1282f7 commit 0efd05a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/settings/lib/SetupChecks/MimeTypeMigrationAvailable.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,15 @@
1010

1111
use OC\Repair\RepairMimeTypes;
1212
use OCP\IL10N;
13-
use OCP\L10N\IFactory;
1413
use OCP\SetupCheck\ISetupCheck;
1514
use OCP\SetupCheck\SetupResult;
1615

1716
class MimeTypeMigrationAvailable implements ISetupCheck {
18-
private IL10N $l10n;
1917

2018
public function __construct(
21-
IFactory $l10nFactory,
2219
private RepairMimeTypes $repairMimeTypes,
20+
private IL10N $l10n,
2321
) {
24-
$this->l10n = $l10nFactory->get('core');
2522
}
2623

2724
public function getCategory(): string {

0 commit comments

Comments
 (0)