diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-07-18 09:10:53 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-07-18 09:10:53 +0200 |
commit | 4bb1b5aebf56b2cf69230d1e557674419bc06eaa (patch) | |
tree | 52a9a5a658e05d9eb2ba30c3a2aeb37697340c04 /inc/template.php | |
parent | 2f1faf4976459076277ef549b2b235cab2593095 (diff) | |
download | rpg-4bb1b5aebf56b2cf69230d1e557674419bc06eaa.tar.gz rpg-4bb1b5aebf56b2cf69230d1e557674419bc06eaa.tar.bz2 |
RSS feeds for search results
Lets you subscribe to the result of a full text search
darcs-hash:20070718071053-7ad00-131c87d5a51ec0d600358590539193ab59b3dbe6.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/template.php b/inc/template.php index c941a64f4..c105ee258 100644 --- a/inc/template.php +++ b/inc/template.php @@ -181,6 +181,7 @@ function tpl_metaheaders($alt=true){ global $REV; global $INFO; global $ACT; + global $QUERY; global $lang; global $conf; $it=2; @@ -203,6 +204,11 @@ function tpl_metaheaders($alt=true){ $head['link'][] = array( 'rel'=>'alternate', 'type'=>'application/rss+xml', 'title'=>'Current Namespace', 'href'=>DOKU_BASE.'feed.php?mode=list&ns='.$INFO['namespace']); + if($ACT == 'search'){ + $head['link'][] = array( 'rel'=>'alternate', 'type'=>'application/rss+xml', + 'title'=>'Search Result', + 'href'=>DOKU_BASE.'feed.php?mode=search&q='.$QUERY); + } if(actionOK('export_xhtml')){ $head['link'][] = array( 'rel'=>'alternate', 'type'=>'text/html', 'title'=>'Plain HTML', |