diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-09 18:17:54 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-09 18:17:54 -0400 |
commit | 70d41055dfd84cea90582e3ca02cd3f227707c02 (patch) | |
tree | 1c10e4a14f10e902e59c768437416cf62100c0cc | |
parent | 1dfae4a0b3234f9248826996e428e8fdbe235a3e (diff) |
add instructions to people search
darcs-hash:20080709221754-84dde-1ad060768f3d4cd9ac8238474e1e418482c15843.gz
-rw-r--r-- | actions/peoplesearch.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/actions/peoplesearch.php b/actions/peoplesearch.php index 8e9193a6e..bfabb46e1 100644 --- a/actions/peoplesearch.php +++ b/actions/peoplesearch.php @@ -30,7 +30,20 @@ class PeoplesearchAction extends Action { $this->show_form(); } + function get_instructions() { + return _t('Search for people on %%site.name%% by their name, location, or interests.'); + } + function show_top($error=NULL) { + if ($error) { + common_element('p', 'error', $error); + } else { + $instr = $this->get_instructions(); + $output = common_markup_to_html($instr); + common_element_start('div', 'instructions'); + common_raw($output); + common_element_end('div'); + } } function show_form($error=NULL) { |