* @file
*/
+use MediaWiki\MediaWikiServices;
+
/**
* @since 1.16.3
* @author Tim Starling
* @return Collation
*/
public static function factory( $collationName ) {
- global $wgContLang;
-
switch ( $collationName ) {
case 'uppercase':
return new UppercaseCollation;
case 'numeric':
- return new NumericUppercaseCollation( $wgContLang );
+ return new NumericUppercaseCollation(
+ MediaWikiServices::getInstance()->getContentLanguage() );
case 'identity':
return new IdentityCollation;
case 'uca-default':