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 /actions/noticesearch.php | |
parent | 8a6bf9a31ab3e4bf0422eedf5aa5845f36512d43 (diff) |
add notice search rss ("tracking")
darcs-hash:20080709234228-84dde-f24d277947ab49031a1b6d74184568fe2f50a685.gz
Diffstat (limited to 'actions/noticesearch.php')
-rw-r--r-- | actions/noticesearch.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/actions/noticesearch.php b/actions/noticesearch.php index 8b2082e8c..0a9f4c37f 100644 --- a/actions/noticesearch.php +++ b/actions/noticesearch.php @@ -69,6 +69,19 @@ class NoticesearchAction extends SearchAction { $page, 'noticesearch', array('q' => $q)); } + function show_header($arr) { + if ($arr) { + $q = $arr[0]; + } + if ($q) { + common_element('link', array('rel' => 'alternate', + 'href' => common_local_url('noticesearchrss', + array('q' => $q)), + 'type' => 'application/rss+xml', + 'title' => _t('Search Stream Feed'))); + } + } + # XXX: refactor and combine with StreamAction::show_notice() function show_notice($notice, $terms) { |