diff options
author | zotlabs <mike@macgirvin.com> | 2017-04-02 17:34:16 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-04-02 17:34:16 -0700 |
commit | 29596d12e371cde577cdf741476698dc14ae3f14 (patch) | |
tree | 93bdf814b1d0acc3a8be1ee6b3092f8ce1ba3119 | |
parent | 1a28fb2a0c8b183fc4463c7f2c08212d068deb69 (diff) | |
download | volse-hubzilla-29596d12e371cde577cdf741476698dc14ae3f14.tar.gz volse-hubzilla-29596d12e371cde577cdf741476698dc14ae3f14.tar.bz2 volse-hubzilla-29596d12e371cde577cdf741476698dc14ae3f14.zip |
app sorting issue
-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']]; + } + } } + } |