From: Abhishek Das Date: Mon, 28 Jan 2013 18:17:13 +0000 (+0530) Subject: (bug 44160) Fix invalid link of `others` during installation X-Git-Tag: 1.31.0-rc.0~20859^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=b1b5187a31ce671bea4017b7278a2e94e3054fa8;p=lhc%2Fweb%2Fwiklou.git (bug 44160) Fix invalid link of `others` during installation On the `Environmental Checks` page during MW installation, the link to `others` in Credits was invalid because it points to a local special page and the wiki is not even installed. Changed the link to `http://www.mediawiki.org/wiki/Special:Version/Credits` which is always available during installation. Change-Id: I3967e14303f9db7def39c97982f06e6086bb69b8 --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 6ea3bf13b5..a34f83efe3 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -114,6 +114,12 @@ class SpecialVersion extends SpecialPage { public static function getCopyrightAndAuthorList() { global $wgLang; + if ( defined( 'MEDIAWIKI_INSTALL' ) ) { + $othersLink = '[http://www.mediawiki.org/wiki/Special:Version/Credits ' . wfMessage( 'version-poweredby-others' )->text() . ']'; + } else { + $othersLink = '[[Special:Version/Credits|' . wfMessage( 'version-poweredby-others' )->text() . ']]'; + } + $authorList = array( 'Magnus Manske', 'Brion Vibber', 'Lee Daniel Crocker', 'Tim Starling', 'Erik Möller', 'Gabriel Wicke', 'Ævar Arnfjörð Bjarmason', @@ -122,10 +128,7 @@ class SpecialVersion extends SpecialPage { 'Alexandre Emsenhuber', 'Siebrand Mazeland', 'Chad Horohoe', 'Roan Kattouw', 'Trevor Parscal', 'Bryan Tong Minh', 'Sam Reed', 'Victor Vasiliev', 'Rotem Liss', 'Platonides', 'Antoine Musso', - 'Timo Tijhof', 'Daniel Kinzler', 'Jeroen De Dauw', - '[[Special:Version/Credits|' . - wfMessage( 'version-poweredby-others' )->text() . - ']]' + 'Timo Tijhof', 'Daniel Kinzler', 'Jeroen De Dauw', $othersLink ); return wfMessage( 'version-poweredby-credits', date( 'Y' ),