X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=opensearch_desc.php;h=85ec580180cedfa5e0bfa764d2e653bc8fa239db;hb=59953d58097084cee2a9f09ab4aaea5d5a9a9dfd;hp=cc6c4719e254138b3163d15f41871966284bb2de;hpb=ce9c8bf6868ccf80002be484803022ebcc3f4d68;p=lhc%2Fweb%2Fwiklou.git diff --git a/opensearch_desc.php b/opensearch_desc.php index cc6c4719e2..85ec580180 100644 --- a/opensearch_desc.php +++ b/opensearch_desc.php @@ -51,7 +51,7 @@ print Xml::element( 'Image', 'height' => 16, 'width' => 16, 'type' => 'image/x-icon' ), - wfExpandUrl( $wgFavicon ) ); + wfExpandUrl( $wgFavicon , PROTO_CURRENT ) ); $urls = array(); @@ -62,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. @@ -86,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 '';