diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2017-03-08 00:19:24 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-03-13 08:52:54 +0100 |
commit | fbd2dd49b6a16a786c6d6da13e8065037577b7c4 (patch) | |
tree | b2144d11bc3118b5be19ebab31762fcbc1260138 /apps/federatedfilesharing/appinfo | |
parent | f7cef9f7024a0f94a36746daee2fe4ef6335bac6 (diff) | |
download | nextcloud-server-fbd2dd49b6a16a786c6d6da13e8065037577b7c4.tar.gz nextcloud-server-fbd2dd49b6a16a786c6d6da13e8065037577b7c4.zip |
use closure to properly defer l10n initialization (#27328)
Diffstat (limited to 'apps/federatedfilesharing/appinfo')
-rw-r--r-- | apps/federatedfilesharing/appinfo/app.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/appinfo/app.php b/apps/federatedfilesharing/appinfo/app.php index 4a5492b0f15..b6a145bcc2c 100644 --- a/apps/federatedfilesharing/appinfo/app.php +++ b/apps/federatedfilesharing/appinfo/app.php @@ -24,7 +24,6 @@ use OCA\FederatedFileSharing\Notifier; $app = new \OCA\FederatedFileSharing\AppInfo\Application(); -$l = \OC::$server->getL10N('files_sharing'); $eventDispatcher = \OC::$server->getEventDispatcher(); $app->registerSettings(); @@ -32,7 +31,8 @@ $app->registerSettings(); $manager = \OC::$server->getNotificationManager(); $manager->registerNotifier(function() { return \OC::$server->query(Notifier::class); -}, function() use ($l) { +}, function() { + $l = \OC::$server->getL10N('files_sharing'); return [ 'id' => 'files_sharing', 'name' => $l->t('Federated sharing'), |