Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/BackgroundJobs/AdminNotification.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/BackgroundJobs/AdminNotification.php b/lib/BackgroundJobs/AdminNotification.php
index a59a152..25f3958 100644
--- a/lib/BackgroundJobs/AdminNotification.php
+++ b/lib/BackgroundJobs/AdminNotification.php
@@ -29,11 +29,13 @@ class AdminNotification extends QueuedJob {
$urlGenerator = \OC::$server->getURLGenerator();
$notification = $manager->createNotification();
+ $url = $urlGenerator->linkToRoute('settings.AdminSettings.index', ['section' => 'survey_client']);
+
$notification->setApp('survey_client')
->setDateTime(new \DateTime())
->setSubject('updated')
->setObject('dummy', 23)
- ->setLink($urlGenerator->getAbsoluteURL('index.php/settings/admin/survey_client'));
+ ->setLink($url);
$enableAction = $notification->createAction();
$enableAction->setLabel('enable')