From da96af357215605d855d6ce8ef8fb50ffb679641 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 10 Nov 2006 16:14:53 +0100 Subject: 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 --- inc/template.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inc') 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'] ); -- cgit v1.2.3