aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/appinfo
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-04-12 13:48:53 +0200
committerJoas Schilling <coding@schilljs.com>2019-07-15 15:12:43 +0200
commit44bc697a93309522cd955be32b4f469c526d268c (patch)
tree32ef669bccc85bec0e1630f1cbd0547ca7c3b720 /apps/federatedfilesharing/appinfo
parenta386ecec8c75677942f489e9e94ddcca6a29a05e (diff)
downloadnextcloud-server-44bc697a93309522cd955be32b4f469c526d268c.tar.gz
nextcloud-server-44bc697a93309522cd955be32b4f469c526d268c.zip
Update Federated sharing notifier
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/federatedfilesharing/appinfo')
-rw-r--r--apps/federatedfilesharing/appinfo/app.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/federatedfilesharing/appinfo/app.php b/apps/federatedfilesharing/appinfo/app.php
index f941987365f..bd46f9824f2 100644
--- a/apps/federatedfilesharing/appinfo/app.php
+++ b/apps/federatedfilesharing/appinfo/app.php
@@ -29,15 +29,7 @@ $app = new \OCA\FederatedFileSharing\AppInfo\Application();
$eventDispatcher = \OC::$server->getEventDispatcher();
$manager = \OC::$server->getNotificationManager();
-$manager->registerNotifier(function() {
- return \OC::$server->query(Notifier::class);
-}, function() {
- $l = \OC::$server->getL10N('files_sharing');
- return [
- 'id' => 'files_sharing',
- 'name' => $l->t('Federated sharing'),
- ];
-});
+$manager->registerNotifier(Notifier::class);
$federatedShareProvider = $app->getFederatedShareProvider();