From c84b2920896df12979274c398496ecedf69a7759 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 10 Oct 2019 08:29:53 +0200 Subject: [PATCH 1/2] Use correct route to generate Signed-off-by: Joas Schilling --- lib/Notification/Notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index ed162ea3..de22a304 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -86,7 +86,7 @@ public function prepare(INotification $notification, $languageCode) { if ($groups === '') { $action = $notification->createAction(); $action->setParsedLabel($l->t('Disable announcements')) - ->setLink($this->url->linkToOCSRouteAbsolute('provisioning_api.AppsController.disable', ['app' => 'nextcloud_announcements']), 'DELETE') + ->setLink($this->url->linkToOCSRouteAbsolute('provisioning_api.Apps.disable', ['app' => 'nextcloud_announcements']), 'DELETE') ->setPrimary(false); $notification->addParsedAction($action); From 2f565c64026cc21874943d60046f159b35516921 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 10 Oct 2019 08:34:18 +0200 Subject: [PATCH 2/2] Fix unit test Signed-off-by: Joas Schilling --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 954adc78..927dccfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,8 @@ language: php # - 7.1 # - 7.2 # - 7.3 +services: + - mysql env: global: