Skip to content
Prev Previous commit
Next Next commit
Fix duplicate navigation registration on old Nextcloud versions
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Sep 1, 2020
commit 7bbf50b9cf0637379008a6a4e4f0df42938fdfe8
15 changes: 0 additions & 15 deletions lib/AppInfo/ApplicationLegacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,28 +92,13 @@ public function __construct(array $urlParams = []) {
}

public function register(): void {
$this->registerNavigationEntry();
$this->registerUserGroupHooks();
$this->registerNotifications();
$this->registerCommentsEntity();
$this->registerFullTextSearch();
$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
Expand Down