summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authormatthew.gregg <matthew.gregg@gmail.com>2008-07-19 21:58:23 -0400
committermatthew.gregg <matthew.gregg@gmail.com>2008-07-19 21:58:23 -0400
commite20362a60aa670a734f73449bffa96ba1492d9e2 (patch)
treec8eabca747f797a7409a1d6e897358c0f4407279 /lib/util.php
parent6dd211530fea743dedf142ced4ccd6c87e5ed54b (diff)
Adds Opensearch description
darcs-hash:20080720015823-982e4-b33e1ef01cd071e958c9c51625190513b86594f3.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index af31a9bd4..e8805d8f4 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -185,6 +185,8 @@ function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=
common_element('script', array('type' => 'text/javascript',
'src' => common_path('js/util.js')),
' ');
+ common_element('link', array('rel' => 'search', 'type' => 'application/opensearchdescription+xml',
+ 'href' => common_local_url('opensearch'), 'title' => common_config('site', 'name').' Search'));
if ($callable) {
if ($data) {
@@ -761,6 +763,8 @@ function common_fancy_url($action, $args=NULL) {
return common_path('rss');
case 'publicxrds':
return common_path('xrds');
+ case 'opensearch':
+ return common_path('opensearch');
case 'doc':
return common_path('doc/'.$args['title']);
case 'login':