Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-07-11 15:35:11 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2016-07-11 15:35:11 +0300
commit89b761bc40d4c81d5684b2f9ab51cc304db92aae (patch)
tree57e6bb4d5e51c42e5fc1d52b94de72a392debe8b /appinfo
parentaba3fce73e6b54850d8cfbbfaf1c7116c232c6f0 (diff)
fix notifications
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php21
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'),
+ ];
+ }
+);