aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-02 17:34:16 -0700
committerMario Vavti <mario@mariovavti.com>2017-04-03 10:50:43 +0200
commitfbba78411dacd411d4455aea526a7b56a7a7be8c (patch)
tree1ace50687cdf51abfd51f1c872092fdd2468508b
parent75cd816e02464d3486495bf802cf6f2e16f78041 (diff)
downloadvolse-hubzilla-fbba78411dacd411d4455aea526a7b56a7a7be8c.tar.gz
volse-hubzilla-fbba78411dacd411d4455aea526a7b56a7a7be8c.tar.bz2
volse-hubzilla-fbba78411dacd411d4455aea526a7b56a7a7be8c.zip
app sorting issue
-rw-r--r--Zotlabs/Lib/Apps.php16
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']];
+ }
+ }
}
+
}