diff options
author | Zot <mike@macgirvin.com> | 2020-06-11 12:13:43 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-06-11 12:13:43 +0200 |
commit | 3201a4bec5f3524c2eba813e46d69b4c5943840f (patch) | |
tree | 255dc1dbe5745a2bf9b5a4f93ed82628052067cb /Zotlabs/Lib/Apps.php | |
parent | 9da8e30c378a58a89d3eeaf2f29d8c8774128235 (diff) | |
download | volse-hubzilla-3201a4bec5f3524c2eba813e46d69b4c5943840f.tar.gz volse-hubzilla-3201a4bec5f3524c2eba813e46d69b4c5943840f.tar.bz2 volse-hubzilla-3201a4bec5f3524c2eba813e46d69b4c5943840f.zip |
allow apps to be both pinned and starred independently
Diffstat (limited to 'Zotlabs/Lib/Apps.php')
-rw-r--r-- | Zotlabs/Lib/Apps.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php index f11bb9628..7b980b8d3 100644 --- a/Zotlabs/Lib/Apps.php +++ b/Zotlabs/Lib/Apps.php @@ -564,7 +564,8 @@ class Apps { '$featured' => ((strpos($papp['categories'], 'nav_featured_app') === false) ? false : true), '$pinned' => ((strpos($papp['categories'], 'nav_pinned_app') === false) ? false : true), '$navapps' => (($mode == 'nav') ? true : false), - '$order' => (($mode == 'nav-order') ? true : false), + '$order' => (($mode === 'nav-order' || $mode === 'nav-order-pinned') ? true : false), + '$mode' => $mode, '$add' => t('Add to app-tray'), '$remove' => t('Remove from app-tray'), '$add_nav' => t('Pin to navbar'), @@ -959,9 +960,6 @@ class Apps { if($list) { foreach($list as $li) { $papp = self::app_encode($li); - if($menu !== 'nav_pinned_app' && strpos($papp['categories'],'nav_pinned_app') !== false) - continue; - $syslist[] = $papp; } } |