summaryrefslogtreecommitdiff
path: root/opensearch_desc.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-12-03 13:29:22 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-12-03 13:29:22 +0100
commitca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch)
treeec04cc15b867bc21eedca904cea9af0254531a11 /opensearch_desc.php
parenta22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff)
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing
Diffstat (limited to 'opensearch_desc.php')
-rw-r--r--opensearch_desc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/opensearch_desc.php b/opensearch_desc.php
index cc6c4719..85ec5801 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 '</OpenSearchDescription>';