From d64bd1a7d3b70113887643a30a03b1f09d09d57c Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 1 Sep 2010 21:01:46 +0000 Subject: [PATCH] Fix author list duplication. --- includes/installer/Installer.i18n.php | 1 - includes/installer/WebInstallerPage.php | 3 ++- includes/specials/SpecialVersion.php | 23 +++++++++++++++++++++-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/includes/installer/Installer.i18n.php b/includes/installer/Installer.i18n.php index a11f2f3511..91c1f6bf52 100644 --- a/includes/installer/Installer.i18n.php +++ b/includes/installer/Installer.i18n.php @@ -66,7 +66,6 @@ This program is distributed in the hope that it will be useful, but '''without a See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. or [http://www.gnu.org/copyleft/gpl.html read it online].", - 'config-authors' => 'MediaWiki is Copyright © 2001-2010 by Magnus Manske, Brion Vibber, Lee Daniel Crocker, Tim Starling, Erik Möller, Gabriel Wicke, Ævar Arnfjörð Bjarmason, Niklas Laxström, Domas Mituzas, Rob Church, Yuri Astrakhan, Aryeh Gregor, Aaron Schulz, Andrew Garrett, Raimond Spekking, Alexandre Emsenhuber, Siebrand Mazeland, Chad Horohoe and others.', // TODO: move this to core strings and use it in Special:Version, too? 'config-sidebar' => "* [http://www.mediawiki.org MediaWiki home] * [http://www.mediawiki.org/wiki/Help:Contents User's Guide] * [http://www.mediawiki.org/wiki/Manual:Contents Administrator's Guide] diff --git a/includes/installer/WebInstallerPage.php b/includes/installer/WebInstallerPage.php index 9d93f9511b..97fa8df8e5 100644 --- a/includes/installer/WebInstallerPage.php +++ b/includes/installer/WebInstallerPage.php @@ -197,7 +197,8 @@ class WebInstaller_Welcome extends WebInstallerPage { $this->parent->output->addWikiText( wfMsgNoTrans( 'config-welcome' ) ); $status = $this->parent->doEnvironmentChecks(); if ( $status ) { - $this->parent->output->addWikiText( wfMsgNoTrans( 'config-copyright', wfMsg( 'config-authors' ) ) ); + $this->parent->output->addWikiText( wfMsgNoTrans( 'config-copyright', + SpecialVersion::getCopyrightAndAuthorList() ) ); $this->startForm(); $this->endForm(); } diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 82d2b7da24..2f726d4a30 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -89,14 +89,33 @@ class SpecialVersion extends SpecialPage { // This text is always left-to-right. $ret .= '
'; $ret .= "__NOTOC__ - " . wfMsg( 'version-poweredby-credits', date( 'Y' ), - $wgLang->listToText( $authorList ) ) . "\n + " . self::getCopyrightAndAuthorList() . "\n " . wfMsg( 'version-license-info' ); $ret .= '
'; return str_replace( "\t\t", '', $ret ) . "\n"; } + /** + * Get the "Mediawiki is copyright 2001-20xx by lots of cool guys" text + * + * @return String + */ + public static function getCopyrightAndAuthorList() { + global $wgLang; + + $authorList = array( 'Magnus Manske', 'Brion Vibber', 'Lee Daniel Crocker', + 'Tim Starling', 'Erik Möller', 'Gabriel Wicke', 'Ævar Arnfjörð Bjarmason', + 'Niklas Laxström', 'Domas Mituzas', 'Rob Church', 'Yuri Astrakhan', + 'Aryeh Gregor', 'Aaron Schulz', 'Andrew Garrett', 'Raimond Spekking', + 'Alexandre Emsenhuber', 'Siebrand Mazeland', 'Chad Horohoe', + wfMsg( 'version-poweredby-others' ) + ); + + return wfMsg( 'version-poweredby-credits', date( 'Y' ), + $wgLang->listToText( $authorList ) ); + } + /** * Returns wiki text showing the third party software versions (apache, php, mysql). * -- 2.20.1