diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-04 16:34:54 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-24 11:26:52 +0200 |
commit | d2553a4f6e14181d7788e42d1c70285ebb40f736 (patch) | |
tree | 1e90b7a43f26a839c74b08d214557bb729e1486f /apps/updatenotification/appinfo | |
parent | 752ec68e18fb1bd4abe8237dd858d42d11531926 (diff) | |
download | nextcloud-server-d2553a4f6e14181d7788e42d1c70285ebb40f736.tar.gz nextcloud-server-d2553a4f6e14181d7788e42d1c70285ebb40f736.zip |
Dismiss the notifications when the update is already installed
Diffstat (limited to 'apps/updatenotification/appinfo')
-rw-r--r-- | apps/updatenotification/appinfo/app.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/updatenotification/appinfo/app.php b/apps/updatenotification/appinfo/app.php index 2457ec21018..de78da5da76 100644 --- a/apps/updatenotification/appinfo/app.php +++ b/apps/updatenotification/appinfo/app.php @@ -40,8 +40,9 @@ if(\OC::$server->getConfig()->getSystemValue('updatechecker', true) === true) { } $manager = \OC::$server->getNotificationManager(); - $manager->registerNotifier(function() { + $manager->registerNotifier(function() use ($manager) { return new \OCA\UpdateNotification\Notification\Notifier( + $manager, \OC::$server->getL10NFactory() ); }, function() use ($l) { |