diff options
author | zotlabs <mike@macgirvin.com> | 2017-04-02 17:34:16 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-04-03 10:50:43 +0200 |
commit | fbba78411dacd411d4455aea526a7b56a7a7be8c (patch) | |
tree | 1ace50687cdf51abfd51f1c872092fdd2468508b /Zotlabs | |
parent | 75cd816e02464d3486495bf802cf6f2e16f78041 (diff) | |
download | volse-hubzilla-fbba78411dacd411d4455aea526a7b56a7a7be8c.tar.gz volse-hubzilla-fbba78411dacd411d4455aea526a7b56a7a7be8c.tar.bz2 volse-hubzilla-fbba78411dacd411d4455aea526a7b56a7a7be8c.zip |
app sorting issue
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Apps.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php index 0ca2f7a99..edf050b95 100644 --- a/Zotlabs/Lib/Apps.php +++ b/Zotlabs/Lib/Apps.php @@ -219,7 +219,7 @@ class Apps { 'Suggest Channels' => t('Suggest Channels'), 'Login' => t('Login'), 'Channel Manager' => t('Channel Manager'), - 'Grid' => t('Grid'), + 'Grid' => t('Activity'), 'Settings' => t('Settings'), 'Files' => t('Files'), 'Webpages' => t('Webpages'), @@ -245,9 +245,19 @@ class Apps { 'Profile Photo' => t('Profile Photo') ); - if(array_key_exists($arr['name'],$apps)) { - $arr['name'] = $apps[$arr['name']]; + if(array_key_exists('name',$arr)) { + if(array_key_exists($arr['name'],$apps)) { + $arr['name'] = $apps[$arr['name']]; + } + } + else { + for($x = 0; $x < count($arr); $x++) { + if(array_key_exists($arr[$x]['name'],$apps)) { + $arr[$x]['name'] = $apps[$arr[$x]['name']]; + } + } } + } |