From e20362a60aa670a734f73449bffa96ba1492d9e2 Mon Sep 17 00:00:00 2001 From: "matthew.gregg" Date: Sat, 19 Jul 2008 21:58:23 -0400 Subject: Adds Opensearch description darcs-hash:20080720015823-982e4-b33e1ef01cd071e958c9c51625190513b86594f3.gz --- lib/util.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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': -- cgit v1.2.3-54-g00ecf