summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-09-01 17:58:23 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-09-08 09:01:01 +0200
commit57c273b2dae918e1b007c1f1d1cd37ec9f6fb248 (patch)
treec573c5279177d6bf19d76a642e7e677f3f88f535 /lib/private
parentd04021b1ac8e9717adb39111622a7d024d90502d (diff)
downloadnextcloud-server-57c273b2dae918e1b007c1f1d1cd37ec9f6fb248.tar.gz
nextcloud-server-57c273b2dae918e1b007c1f1d1cd37ec9f6fb248.zip
Fix closures and adding parsed Actions
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/notification/manager.php4
-rw-r--r--lib/private/notification/notification.php2
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;
}