X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsearchaction.php;h=f99883b251ec7ca2eed5044f555155c5f1ed5166;hb=8deac7248e7db35515d7810491f9136deffa3098;hp=46779bf7acdc63e69484b77e6acda63bf5d5c103;hpb=7e6870db914d4e905fc7ae833b69404fd3ea0d3d;p=quix0rs-gnu-social.git diff --git a/lib/searchaction.php b/lib/searchaction.php index 46779bf7ac..f99883b251 100644 --- a/lib/searchaction.php +++ b/lib/searchaction.php @@ -92,14 +92,19 @@ class SearchAction extends Action { } function search_menu() { - # action => array('prompt', 'title') - static $menu = - array('peoplesearch' => - array('People', - 'Find people on this site'), - 'noticesearch' => - array('Text', - 'Find content of notices')); + # action => array('prompt', 'title', $args) + $action = $this->trimmed('action'); + $menu = + array('peoplesearch' => + array( + _('People'), + _('Find people on this site'), + ($action != 'peoplesearch' && $this->trimmed('q')) ? array('q' => $this->trimmed('q')) : NULL), + 'noticesearch' => + array( _('Text'), + _('Find content of notices'), + ($action != 'noticesearch' && $this->trimmed('q')) ? array('q' => $this->trimmed('q')) : NULL) + ); $this->nav_menu($menu); } }