aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFaisal Alghamdi <falghamdi125@gmail.com>2024-11-12 17:51:36 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-12-03 09:54:37 +0000
commitbe483422dad8184934182c7ad244c003d3f748ec (patch)
tree1f625bcb192966154fdd6d9985a04431f7ad3ff2 /apps
parentce568970cae001b1fc8b2d179fcfbf73e48b7bca (diff)
downloadnextcloud-server-be483422dad8184934182c7ad244c003d3f748ec.tar.gz
nextcloud-server-be483422dad8184934182c7ad244c003d3f748ec.zip
Fix(files_reminders): Add an error log message that notifications app isn't enabled at files_reminders app load.backport/49232/stable28
Signed-off-by: Faisal Alghamdi <falghamdi125@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_reminders/appinfo/info.xml3
-rw-r--r--apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_reminders/appinfo/info.xml b/apps/files_reminders/appinfo/info.xml
index 8ebe3bf61b1..8ebe111dadf 100644
--- a/apps/files_reminders/appinfo/info.xml
+++ b/apps/files_reminders/appinfo/info.xml
@@ -7,6 +7,9 @@
<description><![CDATA[**📣 File reminders**
Set file reminders.
+
+Note: to use the `File reminders` app, ensure that the `Notifications` app is installed and enabled. The `Notifications` app provides the necessary APIs for the `File reminders` app to work correctly.
+
]]></description>
<version>1.1.0</version>
<licence>agpl</licence>
diff --git a/apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php b/apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php
index f95b3da3d61..bc5a44d1441 100644
--- a/apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php
+++ b/apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php
@@ -32,10 +32,12 @@ use OCP\App\IAppManager;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
use OCP\Util;
+use Psr\Log\LoggerInterface;
class LoadAdditionalScriptsListener implements IEventListener {
public function __construct(
private IAppManager $appManager,
+ private LoggerInterface $logger,
) {
}
@@ -45,6 +47,7 @@ class LoadAdditionalScriptsListener implements IEventListener {
}
if (!$this->appManager->isEnabledForUser('notifications')) {
+ $this->logger->error('Failed to register the `files_reminders` app. This could happen due to the `notifications` app being disabled.', ['app' => 'files_reminders']);
return;
}