Index: trunk/phase3/opensearch_desc.php |
— | — | @@ -19,6 +19,9 @@ |
20 | 20 | $title = Title::makeTitle( NS_SPECIAL, 'Search' ); |
21 | 21 | $template = $title->escapeFullURL( 'search={searchTerms}' ); |
22 | 22 | |
| 23 | +$suggest = $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}'; |
| 24 | + |
| 25 | + |
23 | 26 | $response = $wgRequest->response(); |
24 | 27 | $response->header( 'Content-type: application/opensearchdescription+xml' ); |
25 | 28 | |
— | — | @@ -34,6 +37,7 @@ |
35 | 38 | <Description>$siteName</Description> |
36 | 39 | <Image height="16" width="16" type="image/x-icon">$favicon</Image> |
37 | 40 | <Url type="text/html" method="get" template="$template"/> |
| 41 | +<Url type="application/x-suggestions+json" method="GET" template="$suggest"/> |
38 | 42 | </OpenSearchDescription> |
39 | 43 | EOT; |
40 | 44 | |