X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fcollation%2FCollation.php;h=25b3d94574002add08b3d273f3040a6c6596cc79;hb=90d4f56fe46140f9e97e2fa72698f98b57447fe5;hp=f52dcae017cdc7a80e6694eb4ab364e6ba2ddd64;hpb=b4054da0f9c2a1c23f4af93871329e39c0ab6a8f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/collation/Collation.php b/includes/collation/Collation.php index f52dcae017..25b3d94574 100644 --- a/includes/collation/Collation.php +++ b/includes/collation/Collation.php @@ -20,6 +20,8 @@ * @file */ +use MediaWiki\MediaWikiServices; + /** * @since 1.16.3 * @author Tim Starling @@ -46,13 +48,12 @@ abstract class Collation { * @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': @@ -67,8 +68,6 @@ abstract class Collation { return new AbkhazUppercaseCollation; case 'uppercase-ba': return new BashkirUppercaseCollation; - case 'uppercase-se': - return new NorthernSamiUppercaseCollation; default: $match = []; if ( preg_match( '/^uca-([A-Za-z@=-]+)$/', $collationName, $match ) ) {