From b1b5187a31ce671bea4017b7278a2e94e3054fa8 Mon Sep 17 00:00:00 2001 From: Abhishek Das Date: Mon, 28 Jan 2013 23:47:13 +0530 Subject: [PATCH] (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 --- includes/specials/SpecialVersion.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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' ), -- 2.20.1