Skip to content

Commit

Permalink
NC Notification for threshold alerts #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Nov 28, 2019
1 parent e86c014 commit 2227528
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public function register()

protected function registerNotificationNotifier()
{
\OC::$server->getNotificationManager()->registerNotifierService(Notifier::class);
$notificationManager = \OC::$server->getNotificationManager();
// as of NC17
if (method_exists($notificationManager, 'registerNotifierService')) {
\OC::$server->getNotificationManager()->registerNotifierService(Notifier::class);
}
}
}

0 comments on commit 2227528

Please sign in to comment.