X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=opensearch_desc.php;h=b92ff2ecae863287007dee10067463f6fd3d40e8;hp=92c182d8a70e2a2f993ef61cb7202a46e9008555;hb=54344ac962809d4a160806147e391e7e9f3cfa51;hpb=c95f9e24a4e68ed0e700a5e13b6fa5af36461a12 diff --git a/opensearch_desc.php b/opensearch_desc.php index 92c182d8a7..b92ff2ecae 100644 --- a/opensearch_desc.php +++ b/opensearch_desc.php @@ -46,8 +46,8 @@ $response->header( 'Cache-control: max-age=600' ); print ''; print Xml::openElement( 'OpenSearchDescription', [ - 'xmlns' => 'http://a9.com/-/spec/opensearch/1.1/', - 'xmlns:moz' => 'http://www.mozilla.org/2006/browser/search/' ] ); + 'xmlns' => 'http://www.opensearch.org/Specifications/OpenSearch/1.1', + 'xmlns:moz' => 'https://www.mozilla.org/2006/browser/search/' ] ); /* The spec says the ShortName must be no longer than 16 characters, * but 16 is *realllly* short. In practice, browsers don't appear to care @@ -85,7 +85,7 @@ $urls[] = [ 'template' => $searchPage->getCanonicalURL( 'search={searchTerms}' ) ]; foreach ( $wgOpenSearchTemplates as $type => $template ) { - if ( !$template && $wgEnableAPI ) { + if ( !$template ) { $template = ApiOpenSearch::getOpenSearchTemplate( $type ); }