diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-11-10 16:14:53 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-11-10 16:14:53 +0100 |
commit | da96af357215605d855d6ce8ef8fb50ffb679641 (patch) | |
tree | fb168534bdb989614796cdfdd2fd8febc404a37c /inc | |
parent | 122b469f774df8026a8a6182d2bc026ae1a06e2b (diff) | |
download | rpg-da96af357215605d855d6ce8ef8fb50ffb679641.tar.gz rpg-da96af357215605d855d6ce8ef8fb50ffb679641.tar.bz2 |
OpenSearch support
This adds support for the OpenSearch specification to autodetect
DokuWiki's search engine. The patch was submitted by Mike Frysinger
some time ago.
Some changes were made to the original patch. Only tested in FireFox 2.0
darcs-hash:20061110151453-7ad00-298ad77603854a604a642c0afd3975a997b8dc09.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/template.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/template.php b/inc/template.php index 3593cc602..cf3bf8da0 100644 --- a/inc/template.php +++ b/inc/template.php @@ -179,6 +179,8 @@ function tpl_metaheaders($alt=true){ // the usual stuff $head['meta'][] = array( 'name'=>'generator', 'content'=>'DokuWiki '.getVersion() ); + $head['link'][] = array( 'rel'=>'search', 'type'=>'application/opensearchdescription+xml', + 'href'=>DOKU_BASE.'lib/exe/opensearch.php', 'title'=>$conf['title'] ); $head['link'][] = array( 'rel'=>'start', 'href'=>DOKU_BASE ); $head['link'][] = array( 'rel'=>'contents', 'href'=> wl($ID,'do=index',false,'&'), 'title'=>$lang['btn_index'] ); |