aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-04-04 16:12:45 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2025-04-07 10:56:16 +0200
commitd79070c639970dcc46557fa6260ce8a592bde6fa (patch)
treecc9cfa043759865370fd846c9f183df68df725f5
parenta68204971b907d88dc5c684d3bfa5c75afd8373f (diff)
downloadnextcloud-server-d79070c639970dcc46557fa6260ce8a592bde6fa.tar.gz
nextcloud-server-d79070c639970dcc46557fa6260ce8a592bde6fa.zip
fix(files_reminders): add l10n to constructor of setup check
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r--apps/files_reminders/lib/SetupChecks/NeedNotificationsApp.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_reminders/lib/SetupChecks/NeedNotificationsApp.php b/apps/files_reminders/lib/SetupChecks/NeedNotificationsApp.php
index 0ad3150b815..1dc7d652c67 100644
--- a/apps/files_reminders/lib/SetupChecks/NeedNotificationsApp.php
+++ b/apps/files_reminders/lib/SetupChecks/NeedNotificationsApp.php
@@ -10,12 +10,14 @@ declare(strict_types=1);
namespace OCA\FilesReminders\SetupChecks;
use OCP\App\IAppManager;
+use OCP\IL10N;
use OCP\SetupCheck\ISetupCheck;
use OCP\SetupCheck\SetupResult;
class NeedNotificationsApp implements ISetupCheck {
public function __construct(
private IAppManager $appManager,
+ private IL10N $l10n,
) {
}
@@ -28,7 +30,7 @@ class NeedNotificationsApp implements ISetupCheck {
}
public function run(): SetupResult {
- if ($this->appManager->isInstalled('notifications')) {
+ if ($this->appManager->isEnabledForAnyone('notifications')) {
return SetupResult::success($this->l10n->t('This files_reminder can work properly.'));
} else {
return SetupResult::warning($this->l10n->t('The files_reminder app needs the notification app to work properly. You should either enable notifications or disable files_reminder.'));