aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Apps.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-03 20:37:05 -0700
committerredmatrix <git@macgirvin.com>2016-05-03 20:37:05 -0700
commit191298ec93968c8c5804c021d320c536dac32c12 (patch)
treed1d8dff651f96f2174972bd1cf3080d6b8f16db2 /Zotlabs/Module/Apps.php
parent45c7a03a0d3e534ee121a632fc279c353015b876 (diff)
downloadvolse-hubzilla-191298ec93968c8c5804c021d320c536dac32c12.tar.gz
volse-hubzilla-191298ec93968c8c5804c021d320c536dac32c12.tar.bz2
volse-hubzilla-191298ec93968c8c5804c021d320c536dac32c12.zip
more background work for app management - give every member a copy of all the system apps so that they can edit and delete them to taste/preference. This needs further work to pick up changes in system apps (additions, edits, deletions, etc.). Currently this is done once and never attempted again.
Diffstat (limited to 'Zotlabs/Module/Apps.php')
-rw-r--r--Zotlabs/Module/Apps.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Module/Apps.php b/Zotlabs/Module/Apps.php
index 4066966ca..ea6ab1913 100644
--- a/Zotlabs/Module/Apps.php
+++ b/Zotlabs/Module/Apps.php
@@ -17,16 +17,21 @@ class Apps extends \Zotlabs\Web\Controller {
$apps = array();
- $syslist = get_system_apps();
if(local_channel()) {
+ import_system_apps();
+ $syslist = array();
$list = app_list(local_channel());
if($list) {
foreach($list as $x) {
$syslist[] = app_encode($x);
}
}
+ translate_system_apps($syslist);
}
+ else
+ $syslist = get_system_apps(true);
+
usort($syslist,'app_name_compare');
// logger('apps: ' . print_r($syslist,true));