diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-11 15:35:11 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-11 15:35:11 +0300 |
commit | 89b761bc40d4c81d5684b2f9ab51cc304db92aae (patch) | |
tree | 57e6bb4d5e51c42e5fc1d52b94de72a392debe8b /appinfo | |
parent | aba3fce73e6b54850d8cfbbfaf1c7116c232c6f0 (diff) |
fix notifications
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index e474cbe..0f4801b 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -21,8 +21,19 @@ \OCP\App::registerAdmin('survey_client', 'admin'); -\OC::$server->getNotificationManager()->registerNotifier(function() { - return new \OCA\Survey_Client\Notifier( - \OC::$server->getL10NFactory() - ); -}); +$l = \OC::$server->getL10N('survey_client'); + +$notificationManager = \OC::$server->getNotificationManager(); +$notificationManager->registerNotifier( + function() { + return new \OCA\Survey_Client\Notifier( + \OC::$server->getL10NFactory() + ); + }, + function() use ($l) { + return [ + 'id' => 'survey_client', + 'name' => $l->t('Survey Client'), + ]; + } +); |