X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=opensearch_desc.php;h=ecd5051cd991b9c5a198db0533920db5df80b5bf;hb=ea741f8c1a35ed65a914c2941722f143da97d4e8;hp=4e8a1a2eb831b9a708a167247a15c101515aa4f1;hpb=f8daed077a379161ac5d32c9c503f57028b4ccc7;p=lhc%2Fweb%2Fwiklou.git diff --git a/opensearch_desc.php b/opensearch_desc.php index 4e8a1a2eb8..ecd5051cd9 100644 --- a/opensearch_desc.php +++ b/opensearch_desc.php @@ -20,9 +20,9 @@ * @file */ -require_once( __DIR__ . '/includes/WebStart.php' ); +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 { @@ -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 ); }