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];
}
$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');
common_show_footer();
}
- function search_menu() {
+ function search_menu()
+ {
# action => array('prompt', 'title', $args)
$action = $this->trimmed('action');
$menu =
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);
}