(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
This commit is contained in:
parent
050743789e
commit
b1b5187a31
1 changed files with 7 additions and 4 deletions
|
|
@ -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' ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue