r113005 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113004‎ | r113005 | r113006 >
Date:08:43, 5 March 2012
Author:santhosh
Status:ok
Tags:
Comment:
Use getLanguageNames since fetchLanguageNames is available only in 1.20+
Modified paths:
  • /trunk/extensions/Translate/tag/SpecialPageTranslation.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php
@@ -701,7 +701,7 @@
702702 $npLangs = array_map( 'trim', explode( ',', $npLangs ) );
703703 $npLangs = array_unique( $npLangs );
704704 // Remove invalid language codes.
705 - $languages = Language::fetchLanguageNames( null, 'mw' );
 705+ $languages = Language::getLanguageNames();
706706 foreach ( $npLangs as $index => $language ) {
707707 if( !array_key_exists( $language, $languages ) ) {
708708 unset( $npLangs[$index] );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113000Remove invalid language codes from the priority languages.santhosh05:41, 5 March 2012

Status & tagging log