X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fcollation%2FCollation.php;h=ab3c6fb432b1eb057fb401628674a531120703f9;hp=b1ccdc20a34ec38b1b035cc1a78d821889387da2;hb=1de7117197761961736ea43b237599569eee93a2;hpb=997d35906d72d1574bf3b2f8c3fc7d42388144de diff --git a/includes/collation/Collation.php b/includes/collation/Collation.php index b1ccdc20a3..ab3c6fb432 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': @@ -61,8 +62,6 @@ abstract class Collation { return new IcuCollation( 'root-u-kn' ); case 'xx-uca-ckb': return new CollationCkb; - case 'xx-uca-et': - return new CollationEt; case 'uppercase-ab': return new AbkhazUppercaseCollation; case 'uppercase-ba':