X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=lib%2Fsearchaction.php;h=bc90fac1aac5530be8d31476630e011e127256f0;hb=0029ebad111fd929936698d843556701df0f348c;hp=8634bd99cfc8fe9f784679fff250fa85313ea77a;hpb=edbc0c665cc65875b4d14b79939233b1c9c06bb6;p=quix0rs-gnu-social.git diff --git a/lib/searchaction.php b/lib/searchaction.php index 8634bd99cf..bc90fac1aa 100644 --- a/lib/searchaction.php +++ b/lib/searchaction.php @@ -19,18 +19,22 @@ if (!defined('LACONICA')) { exit(1); } -class SearchAction extends Action { +class SearchAction extends Action +{ - function is_readonly() { + function is_readonly() + { return true; } - function handle($args) { + function handle($args) + { parent::handle($args); $this->show_form(); } - function show_top($arr=NULL) { + function show_top($arr=null) + { if ($arr) { $error = $arr[1]; } @@ -46,15 +50,18 @@ class SearchAction extends Action { $this->search_menu(); } - function get_title() { - return NULL; + function get_title() + { + return null; } - function show_header($arr) { + function show_header($arr) + { return; } - function show_form($error=NULL) { + function show_form($error=null) + { global $config; $q = $this->trimmed('q'); @@ -91,7 +98,8 @@ class SearchAction extends Action { common_show_footer(); } - function search_menu() { + function search_menu() + { # action => array('prompt', 'title', $args) $action = $this->trimmed('action'); $menu = @@ -99,11 +107,11 @@ class SearchAction extends Action { array( _('People'), _('Find people on this site'), - ($action != 'peoplesearch' && $this->trimmed('q')) ? array('q' => $this->trimmed('q')) : NULL), + ($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) + ($action != 'noticesearch' && $this->trimmed('q')) ? array('q' => $this->trimmed('q')) : null) ); $this->nav_menu($menu); }