diff options
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/notification/manager.php | 4 | ||||
-rw-r--r-- | lib/private/notification/notification.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/notification/manager.php b/lib/private/notification/manager.php index f14929642dc..eee03d93db2 100644 --- a/lib/private/notification/manager.php +++ b/lib/private/notification/manager.php @@ -71,7 +71,7 @@ class Manager implements IManager { } foreach ($this->appsClosures as $closure) { - $app = $closure; + $app = $closure(); if (!($app instanceof IApp)) { throw new \InvalidArgumentException('The given notification app does not implement the IApp interface'); } @@ -90,7 +90,7 @@ class Manager implements IManager { } foreach ($this->notifiersClosures as $closure) { - $notifier = $closure; + $notifier = $closure(); if (!($notifier instanceof INotifier)) { throw new \InvalidArgumentException('The given notification app does not implement the INotifier interface'); } diff --git a/lib/private/notification/notification.php b/lib/private/notification/notification.php index 17246ddef32..f5171f150c6 100644 --- a/lib/private/notification/notification.php +++ b/lib/private/notification/notification.php @@ -393,7 +393,7 @@ class Notification implements INotification { if (!$action->isValidParsed()) { throw new \InvalidArgumentException('The given parsed action is invalid'); } - $this->actions[] = $action; + $this->actionsParsed[] = $action; return $this; } |