diff options
author | redmatrix <git@macgirvin.com> | 2016-05-04 18:27:46 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-04 18:27:46 -0700 |
commit | 566667a263abd6f4b2a8a24579323e65d0016d7c (patch) | |
tree | 674b4a64548d930bc80ba60876f122ffa3f2d5f4 /Zotlabs/Module | |
parent | 1b6bc5394b7cf8435928eaa2ace4e321f517ecb6 (diff) | |
download | volse-hubzilla-566667a263abd6f4b2a8a24579323e65d0016d7c.tar.gz volse-hubzilla-566667a263abd6f4b2a8a24579323e65d0016d7c.tar.bz2 volse-hubzilla-566667a263abd6f4b2a8a24579323e65d0016d7c.zip |
provide a tag cloud for app categories and allow filtering apps from this
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Apps.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Apps.php b/Zotlabs/Module/Apps.php index ea6ab1913..33259b319 100644 --- a/Zotlabs/Module/Apps.php +++ b/Zotlabs/Module/Apps.php @@ -21,7 +21,7 @@ class Apps extends \Zotlabs\Web\Controller { if(local_channel()) { import_system_apps(); $syslist = array(); - $list = app_list(local_channel()); + $list = app_list(local_channel(), false, $_GET['cat']); if($list) { foreach($list as $x) { $syslist[] = app_encode($x); @@ -42,6 +42,7 @@ class Apps extends \Zotlabs\Web\Controller { return replace_macros(get_markup_template('myapps.tpl'), array( '$sitename' => get_config('system','sitename'), + '$cat' => ((array_key_exists('cat',$_GET) && $_GET['cat']) ? ' - ' . escape_tags($_GET['cat']) : ''), '$title' => t('Apps'), '$apps' => $apps, )); |