Skip to content

Commit

Permalink
fixup! fix(TemplateLayout): Use NavigationManager to get default app …
Browse files Browse the repository at this point in the history
…name
  • Loading branch information
provokateurin committed Aug 27, 2024
1 parent e935819 commit e0e29ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/TemplateLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ public function __construct($renderAs, $appId = '') {
$this->assign('logoUrl', $logoUrl);

// Set default entry name
$defaultEntryId = \OC::$server->getNavigationManager()->getDefaultEntryIdForUser();
$defaultEntry = \OC::$server->getNavigationManager()->get($defaultEntryId);
$defaultEntryId = \OCP\Server::get(INavigationManager::class)->getDefaultEntryIdForUser();
$defaultEntry = \OCP\Server::get(INavigationManager::class)->get($defaultEntryId);
$this->assign('defaultAppName', $defaultEntry['name']);

// Add navigation entry
Expand Down

0 comments on commit e0e29ca

Please sign in to comment.