diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-09 19:42:28 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-09 19:42:28 -0400 |
commit | 63d34061a2edf233a43b0f5b0f8f7f9fdd7177e8 (patch) | |
tree | 51fc27fab130b880c54a1baab5fedffcc0b53259 /lib/searchaction.php | |
parent | 8a6bf9a31ab3e4bf0422eedf5aa5845f36512d43 (diff) |
add notice search rss ("tracking")
darcs-hash:20080709234228-84dde-f24d277947ab49031a1b6d74184568fe2f50a685.gz
Diffstat (limited to 'lib/searchaction.php')
-rw-r--r-- | lib/searchaction.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/searchaction.php b/lib/searchaction.php index bf598ea93..a9fb77fd3 100644 --- a/lib/searchaction.php +++ b/lib/searchaction.php @@ -26,7 +26,10 @@ class SearchAction extends Action { $this->show_form(); } - function show_top($error=NULL) { + function show_top($arr=NULL) { + if ($arr) { + $error = $arr[1]; + } if ($error) { common_element('p', 'error', $error); } else { @@ -42,12 +45,17 @@ class SearchAction extends Action { function get_title() { return NULL; } + + function show_header($arr) { + return; + } function show_form($error=NULL) { $q = $this->trimmed('q'); $page = $this->trimmed('page', 1); - common_show_header($this->get_title(), NULL, $error, array($this, 'show_top')); + common_show_header($this->get_title(), array($this, 'show_header'), array($q, $error), + array($this, 'show_top')); common_element_start('form', array('method' => 'post', 'id' => 'login', 'action' => common_local_url($this->trimmed('action')))); |