diff options
author | zotlabs <mike@macgirvin.com> | 2018-07-04 23:20:35 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-07-04 23:20:35 -0700 |
commit | f6e8ce5516eeaf2e0525f69099d68a55df9501e3 (patch) | |
tree | 95567186aa874db9fbb809f10c6d9b5dedd41b34 /Zotlabs/Module | |
parent | 51a2e64a897e5afdb3e607915534a1562a215563 (diff) | |
download | volse-hubzilla-f6e8ce5516eeaf2e0525f69099d68a55df9501e3.tar.gz volse-hubzilla-f6e8ce5516eeaf2e0525f69099d68a55df9501e3.tar.bz2 volse-hubzilla-f6e8ce5516eeaf2e0525f69099d68a55df9501e3.zip |
appstore changes
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Apps.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Apps.php b/Zotlabs/Module/Apps.php index c672ea467..10f40af71 100644 --- a/Zotlabs/Module/Apps.php +++ b/Zotlabs/Module/Apps.php @@ -15,6 +15,8 @@ class Apps extends \Zotlabs\Web\Controller { else $mode = 'list'; + $available = ((argc() == 2 && argv(1) === 'available') ? true : false); + $_SESSION['return_url'] = \App::$query_string; $apps = array(); @@ -23,7 +25,7 @@ class Apps extends \Zotlabs\Web\Controller { Zlib\Apps::import_system_apps(); $syslist = array(); $cat = ((array_key_exists('cat',$_GET) && $_GET['cat']) ? [ escape_tags($_GET['cat']) ] : ''); - $list = Zlib\Apps::app_list(local_channel(), (($mode == 'edit') ? true : false), $cat); + $list = Zlib\Apps::app_list((($available) ? 0 : local_channel()), (($mode == 'edit') ? true : false), $cat); if($list) { foreach($list as $x) { $syslist[] = Zlib\Apps::app_encode($x); @@ -39,7 +41,7 @@ class Apps extends \Zotlabs\Web\Controller { // logger('apps: ' . print_r($syslist,true)); foreach($syslist as $app) { - $apps[] = Zlib\Apps::app_render($app,$mode); + $apps[] = Zlib\Apps::app_render($app,(($available) ? 'install' : $mode)); } return replace_macros(get_markup_template('myapps.tpl'), array( |