diff options
author | zotlabs <mike@macgirvin.com> | 2017-01-13 13:22:36 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-01-13 13:22:36 -0800 |
commit | 4f1e4ffa70f5a822367eafec914ff8853561210d (patch) | |
tree | e9fb8dc76938729944071e4d1e6fb8dbdff10049 /include | |
parent | 7249eebc7528b2c60c1f83724966cc4a1192cbb0 (diff) | |
download | volse-hubzilla-4f1e4ffa70f5a822367eafec914ff8853561210d.tar.gz volse-hubzilla-4f1e4ffa70f5a822367eafec914ff8853561210d.tar.bz2 volse-hubzilla-4f1e4ffa70f5a822367eafec914ff8853561210d.zip |
several minor app nits
Diffstat (limited to 'include')
-rw-r--r-- | include/widgets.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/widgets.php b/include/widgets.php index dde8e7cd0..d3bdb3313 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -104,7 +104,8 @@ function widget_appselect($arr) { '$authed' => ((local_channel()) ? true : false), '$personal' => t('Personal'), '$new' => t('New App'), - '$edit' => t('Edit App') + '$edit' => t('Edit Apps'), + '$cat' => ((array_key_exists('cat',$_REQUEST)) ? $_REQUEST['cat'] : '') )); } @@ -441,11 +442,13 @@ function widget_appcategories($arr) { if(! local_channel()) return ''; - $cat = ((x($_REQUEST,'cat')) ? htmlspecialchars($_REQUEST['cat'],ENT_COMPAT,'UTF-8') : ''); - $srchurl = App::$query_string; + $selected = ((x($_REQUEST,'cat')) ? htmlspecialchars($_REQUEST['cat'],ENT_COMPAT,'UTF-8') : ''); + $srchurl = rtrim(preg_replace('/cat\=[^\&].*?(\&|$)/is','',$srchurl),'&'); $srchurl = str_replace(array('?f=','&f='),array('',''),$srchurl); + $srchurl = z_root() . '/apps'; + $terms = array(); $r = q("select distinct(term.term) |