include q as param, not arg for search sub menu
This commit is contained in:
parent
7c03a50947
commit
0b1d8762c6
@ -85,4 +85,23 @@ class SearchSubMenu extends MoreMenu
|
|||||||
|
|
||||||
return $items;
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user