move the active app code to include/nav.php - it is only relevant there

This commit is contained in:
git-marijus
2017-07-26 21:42:07 +02:00
parent caf077cbf8
commit e71cdf02a8
2 changed files with 3 additions and 3 deletions

View File

@@ -242,6 +242,9 @@ EOT;
$syslist = Zlib\Apps::app_order(local_channel(),$syslist);
foreach($syslist as $app) {
if(\App::$nav_sel['active'] == $app['name'])
$app['active'] = true;
if($is_owner)
$nav_apps[] = Zlib\Apps::app_render($app,'nav');
elseif(! $is_owner && strpos($app['requires'], 'local_channel') === false)