X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=opensearch_desc.php;h=85ec580180cedfa5e0bfa764d2e653bc8fa239db;hb=c945156ddedabf8c4f6c947cadb7654f7dba6398;hp=3dbf872079dca47bbc16ae6a05540dbf60f9f78f;hpb=52fedd804477e4971877225182ab6a3d77ec8510;p=lhc%2Fweb%2Fwiklou.git diff --git a/opensearch_desc.php b/opensearch_desc.php index 3dbf872079..85ec580180 100644 --- a/opensearch_desc.php +++ b/opensearch_desc.php @@ -2,6 +2,8 @@ /** * Generate an OpenSearch description file + * + * @file */ require_once( dirname(__FILE__) . '/includes/WebStart.php' ); @@ -49,7 +51,7 @@ print Xml::element( 'Image', 'height' => 16, 'width' => 16, 'type' => 'image/x-icon' ), - wfExpandUrl( $wgFavicon ) ); + wfExpandUrl( $wgFavicon , PROTO_CURRENT ) ); $urls = array(); @@ -60,7 +62,7 @@ $searchPage = SpecialPage::getTitleFor( 'Search' ); $urls[] = array( 'type' => 'text/html', 'method' => 'get', - 'template' => $searchPage->getFullURL( 'search={searchTerms}' ) ); + 'template' => $searchPage->getCanonicalURL( 'search={searchTerms}' ) ); if( $wgEnableAPI ) { // JSON interface for search suggestions. @@ -84,6 +86,6 @@ foreach( $urls as $attribs ) { // sends you to the domain root if you hit "enter" with an empty // search box. print Xml::element( 'moz:SearchForm', null, - $searchPage->getFullUrl() ); + $searchPage->getCanonicalURL() ); print '';