(bug 32380) Make get powered by link target protocol-relative
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 14 Nov 2011 08:06:41 +0000 (08:06 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 14 Nov 2011 08:06:41 +0000 (08:06 +0000)
includes/Skin.php

index 96566d7..43176f2 100644 (file)
@@ -782,7 +782,7 @@ abstract class Skin extends ContextSource {
                global $wgStylePath;
 
                $url = htmlspecialchars( "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" );
-               $text = '<a href="http://www.mediawiki.org/"><img src="' . $url . '" height="31" width="88" alt="Powered by MediaWiki" /></a>';
+               $text = '<a href="//www.mediawiki.org/"><img src="' . $url . '" height="31" width="88" alt="Powered by MediaWiki" /></a>';
                wfRunHooks( 'SkinGetPoweredBy', array( &$text, $this ) );
                return $text;
        }