correct link for searchsubs
This commit is contained in:
parent
dbb7324b25
commit
52ed4678f3
@ -108,7 +108,6 @@ class SearchSubPlugin extends Plugin
|
|||||||
$m->connect('search/:search/unsubscribe',
|
$m->connect('search/:search/unsubscribe',
|
||||||
array('action' => 'searchunsub'),
|
array('action' => 'searchunsub'),
|
||||||
array('search' => Router::REGEX_TAG));
|
array('search' => Router::REGEX_TAG));
|
||||||
|
|
||||||
$m->connect(':nickname/search-subscriptions',
|
$m->connect(':nickname/search-subscriptions',
|
||||||
array('action' => 'searchsubs'),
|
array('action' => 'searchsubs'),
|
||||||
array('nickname' => Nickname::DISPLAY_FMT));
|
array('nickname' => Nickname::DISPLAY_FMT));
|
||||||
|
@ -92,9 +92,12 @@ class SearchSubMenu extends MoreMenu
|
|||||||
$id = $this->menuItemID($actionName, $args);
|
$id = $this->menuItemID($actionName, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add 'q' as a search param, not part of the url path
|
if ($actionname == 'searchsub') {
|
||||||
|
// Add 'q' as a search param, not part of the url path
|
||||||
$url = common_local_url($actionName, array(), $args);
|
$url = common_local_url($actionName, array(), $args);
|
||||||
|
} else {
|
||||||
|
$url = common_local_url($actionName, $args);
|
||||||
|
}
|
||||||
|
|
||||||
$this->out->menuItem($url,
|
$this->out->menuItem($url,
|
||||||
$label,
|
$label,
|
||||||
|
Loading…
Reference in New Issue
Block a user