(bug 31644) [MERGE DEPENDENCY] Let WikiMap url builders return full urls instead...
authorDerk-Jan Hartman <hartman@videolan.org>
Tue, 31 Jul 2012 21:06:51 +0000 (23:06 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Tue, 31 Jul 2012 21:17:12 +0000 (23:17 +0200)
* This commit depends on a commit of globalusage https://gerrit.wikimedia.org/r/17117
* This allows GlobalUsage, CentralAuth and AbuseLog extensions to use protocol relative URLs.

Change-Id: I7e65bd029f359c36770aa48e6663f26a671b92c0

RELEASE-NOTES-1.20
includes/WikiMap.php

index 9383bf2..19a4fed 100644 (file)
@@ -176,6 +176,8 @@ upgrade PHP if you have not done so prior to upgrading MediaWiki.
 * (bug 38093) Gender of changed user groups missing in Special:Log/rights
 * (bug 35893) Special:Block needs to load mediawiki.special.block.js.
 * (bug 37331) ResourceLoader modules sometimes execute twice in Firefox
+* (bug 31644) GlobalUsage, CentralAuth and AbuseLog extensions should not use
+  insecure links to foreign wikis in the WikiMap.
 
 === API changes in 1.20 ===
 * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
index 7dd85b6..4a5e2bc 100644 (file)
@@ -109,7 +109,7 @@ class WikiMap {
                $wiki = WikiMap::getWiki( $wikiID );
 
                if ( $wiki ) {
-                       return $wiki->getUrl( $page );
+                       return $wiki->getFullUrl( $page );
                }
 
                return false;