From 63d34061a2edf233a43b0f5b0f8f7f9fdd7177e8 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 9 Jul 2008 19:42:28 -0400 Subject: add notice search rss ("tracking") darcs-hash:20080709234228-84dde-f24d277947ab49031a1b6d74184568fe2f50a685.gz --- actions/noticesearch.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'actions/noticesearch.php') 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) { -- cgit v1.2.3-54-g00ecf