From 7bbf50b9cf0637379008a6a4e4f0df42938fdfe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 24 Aug 2020 17:30:06 +0200 Subject: [PATCH] Fix duplicate navigation registration on old Nextcloud versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/AppInfo/ApplicationLegacy.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/AppInfo/ApplicationLegacy.php b/lib/AppInfo/ApplicationLegacy.php index 4a299c429..6fac3c6a8 100644 --- a/lib/AppInfo/ApplicationLegacy.php +++ b/lib/AppInfo/ApplicationLegacy.php @@ -92,7 +92,6 @@ class ApplicationLegacy extends App { } public function register(): void { - $this->registerNavigationEntry(); $this->registerUserGroupHooks(); $this->registerNotifications(); $this->registerCommentsEntity(); @@ -100,20 +99,6 @@ class ApplicationLegacy extends App { $this->registerCollaborationResources(); } - public function registerNavigationEntry(): void { - $container = $this->getContainer(); - $this->server->getNavigationManager()->add(static function () use ($container) { - $urlGenerator = $container->query(IURLGenerator::class); - return [ - 'id' => 'deck', - 'order' => 10, - 'href' => $urlGenerator->linkToRoute('deck.page.index'), - 'icon' => $urlGenerator->imagePath('deck', 'deck.svg'), - 'name' => 'Deck', - ]; - }); - } - private function registerUserGroupHooks(): void { $container = $this->getContainer(); // Delete user/group acl entries when they get deleted