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:
authorBjoern Schiessle <bjoern@schiessle.org>2016-08-16 22:40:39 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2016-08-16 22:41:20 +0300
commit2f7822fbdb895621596d11c7277bba977f609a20 (patch)
treeb5cc2876a0d54d7a4c24c724832ae0aa90a5ba4a /lib
parentda616e68b12de06b5c7c59645668595b5a46475d (diff)
use route to create link
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')