Skip to content

Commit e0e29ca

Browse files
committed
fixup! fix(TemplateLayout): Use NavigationManager to get default app name
1 parent e935819 commit e0e29ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/TemplateLayout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ public function __construct($renderAs, $appId = '') {
100100
$this->assign('logoUrl', $logoUrl);
101101

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

107107
// Add navigation entry

0 commit comments

Comments
 (0)