From: Evan Prodromou Date: Thu, 15 Sep 2011 15:00:27 +0000 (-0400) Subject: include q as param, not arg for search sub menu X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b1d8762c6f0739052dc074152a9d7ec119c33fe;p=quix0rs-gnu-social.git include q as param, not arg for search sub menu --- diff --git a/plugins/SearchSub/searchsubmenu.php b/plugins/SearchSub/searchsubmenu.php index 755a3c9a5b..5973eb8b93 100644 --- a/plugins/SearchSub/searchsubmenu.php +++ b/plugins/SearchSub/searchsubmenu.php @@ -85,4 +85,23 @@ class SearchSubMenu extends MoreMenu return $items; } + + function item($actionName, $args, $label, $description, $id=null, $cls=null) + { + if (empty($id)) { + $id = $this->menuItemID($actionName, $args); + } + + // Add 'q' as a search param, not part of the url path + + $url = common_local_url($actionName, array(), $args); + + $this->out->menuItem($url, + $label, + $description, + $this->isCurrent($actionName, $args), + $id, + $cls); + } } +