diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-08-16 22:40:39 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-08-16 22:41:20 +0300 |
commit | 2f7822fbdb895621596d11c7277bba977f609a20 (patch) | |
tree | b5cc2876a0d54d7a4c24c724832ae0aa90a5ba4a /lib | |
parent | da616e68b12de06b5c7c59645668595b5a46475d (diff) |
use route to create link
Diffstat (limited to 'lib')
-rw-r--r-- | lib/BackgroundJobs/AdminNotification.php | 4 |
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') |