diff options
author | git-marijus <mario@mariovavti.com> | 2017-07-26 21:42:07 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-07-26 21:42:07 +0200 |
commit | e71cdf02a8303689c933b98185e2671f49fc5a7d (patch) | |
tree | c277326391fbc748cb905e462e9a51b01381c34b /include/nav.php | |
parent | caf077cbf893cd02932194e1641c861ffcc2e339 (diff) | |
download | volse-hubzilla-e71cdf02a8303689c933b98185e2671f49fc5a7d.tar.gz volse-hubzilla-e71cdf02a8303689c933b98185e2671f49fc5a7d.tar.bz2 volse-hubzilla-e71cdf02a8303689c933b98185e2671f49fc5a7d.zip |
move the active app code to include/nav.php - it is only relevant there
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/nav.php b/include/nav.php index 4cb2e7fa6..cd32126a1 100644 --- a/include/nav.php +++ b/include/nav.php @@ -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) |