diff --git a/inc/template.php b/inc/template.php index a1bdc8d640f29c48cae89ccd7ec86aa3eece9923..ec99742116e9fd90006b8fd36a9ba6e6e2b26e0f 100644 --- a/inc/template.php +++ b/inc/template.php @@ -303,10 +303,13 @@ function tpl_metaheaders($alt = true) { // the usual stuff $head['meta'][] = array('name'=> 'generator', 'content'=> 'DokuWiki'); - $head['link'][] = array( - 'rel' => 'search', 'type'=> 'application/opensearchdescription+xml', - 'href'=> DOKU_BASE.'lib/exe/opensearch.php', 'title'=> $conf['title'] - ); + if(actionOK('search')) { + $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); if(actionOK('index')) { $head['link'][] = array(