X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=opensearch_desc.php;h=cb8b1bec9d9088a16576dab22136935bbab07459;hb=276319122142a502a275343b9eb2481eaf916b92;hp=95f028ac73ed30cedb3c945b7d12db907c11581d;hpb=8fc67e5592f7cd6a44aa470887688c71c6edca68;p=lhc%2Fweb%2Fwiklou.git diff --git a/opensearch_desc.php b/opensearch_desc.php index 95f028ac73..cb8b1bec9d 100644 --- a/opensearch_desc.php +++ b/opensearch_desc.php @@ -22,7 +22,7 @@ require_once( __DIR__ . '/includes/WebStart.php' ); -if( $wgRequest->getVal( 'ctype' ) == 'application/xml' ) { +if ( $wgRequest->getVal( 'ctype' ) == 'application/xml' ) { // Makes testing tweaks about a billion times easier $ctype = 'application/xml'; } else { @@ -65,7 +65,7 @@ print Xml::element( 'Image', 'height' => 16, 'width' => 16, 'type' => 'image/x-icon' ), - wfExpandUrl( $wgFavicon , PROTO_CURRENT ) ); + wfExpandUrl( $wgFavicon, PROTO_CURRENT ) ); $urls = array(); @@ -78,7 +78,7 @@ $urls[] = array( 'method' => 'get', 'template' => $searchPage->getCanonicalURL( 'search={searchTerms}' ) ); -if( $wgEnableAPI ) { +if ( $wgEnableAPI ) { // JSON interface for search suggestions. // Supported in Firefox 2 and later. $urls[] = array( @@ -91,7 +91,7 @@ if( $wgEnableAPI ) { // general way than overriding the whole search engine... wfRunHooks( 'OpenSearchUrls', array( &$urls ) ); -foreach( $urls as $attribs ) { +foreach ( $urls as $attribs ) { print Xml::element( 'Url', $attribs ); }