$activeAppIndex = -1;
$activeApp = OC::$server->getNavigationManager()->getActiveEntry();
foreach ($list as $index => &$navEntry) {
+ $navEntry['showInHeader'] = true;
if ($navEntry['id'] == $activeApp) {
$navEntry['active'] = true;
$activeAppIndex = $index;
}
foreach ($list as $index => &$navEntry) {
- $navEntry['showInHeader'] = false;
- if($index < $headerIconCount) {
- $navEntry['showInHeader'] = true;
+ if($index >= $headerIconCount) {
+ $navEntry['showInHeader'] = false;
}
}
-
-
return $list;
}