summaryrefslogtreecommitdiff
path: root/opensearch_desc.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2013-08-12 09:28:15 +0200
committerPierre Schmitz <pierre@archlinux.de>2013-08-12 09:28:15 +0200
commit08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch)
tree577a29fb579188d16003a209ce2a2e9c5b0aa2bd /opensearch_desc.php
parentcacc939b34e315b85e2d72997811eb6677996cc1 (diff)
Update to MediaWiki 1.21.1
Diffstat (limited to 'opensearch_desc.php')
-rw-r--r--opensearch_desc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/opensearch_desc.php b/opensearch_desc.php
index 95f028ac..cb8b1bec 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 );
}