(bug 44160) Fix invalid link of `others` during installation
authorAbhishek Das <das.abhshk@gmail.com>
Mon, 28 Jan 2013 18:17:13 +0000 (23:47 +0530)
committerAbhishek Das <das.abhshk@gmail.com>
Tue, 29 Jan 2013 12:44:12 +0000 (18:14 +0530)
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

index 6ea3bf1..a34f83e 100644 (file)
@@ -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' ),