dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SECURITY: Fix extension detection with 2 .'s
[lhc/web/wiklou.git]
/
opensearch_desc.php
diff --git
a/opensearch_desc.php
b/opensearch_desc.php
index
95f028a
..
ecd5051
100644
(file)
--- a/
opensearch_desc.php
+++ b/
opensearch_desc.php
@@
-20,9
+20,9
@@
* @file
*/
* @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 {
// 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' ),
'height' => 16,
'width' => 16,
'type' => 'image/x-icon' ),
- wfExpandUrl( $wgFavicon
, PROTO_CURRENT ) );
+ wfExpandUrl( $wgFavicon, PROTO_CURRENT ) );
$urls = array();
$urls = array();
@@
-78,7
+78,7
@@
$urls[] = array(
'method' => 'get',
'template' => $searchPage->getCanonicalURL( 'search={searchTerms}' ) );
'method' => 'get',
'template' => $searchPage->getCanonicalURL( 'search={searchTerms}' ) );
-if( $wgEnableAPI ) {
+if
( $wgEnableAPI ) {
// JSON interface for search suggestions.
// Supported in Firefox 2 and later.
$urls[] = array(
// 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 ) );
// 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 );
}
print Xml::element( 'Url', $attribs );
}