Merge "Add CollationFa"
[lhc/web/wiklou.git] / includes / collation / Collation.php
index 0e0ee2f..7659d6c 100644 (file)
@@ -46,9 +46,13 @@ abstract class Collation {
         * @return Collation
         */
        public static function factory( $collationName ) {
         * @return Collation
         */
        public static function factory( $collationName ) {
+               global $wgContLang;
+
                switch ( $collationName ) {
                        case 'uppercase':
                                return new UppercaseCollation;
                switch ( $collationName ) {
                        case 'uppercase':
                                return new UppercaseCollation;
+                       case 'numeric':
+                               return new NumericUppercaseCollation( $wgContLang );
                        case 'identity':
                                return new IdentityCollation;
                        case 'uca-default':
                        case 'identity':
                                return new IdentityCollation;
                        case 'uca-default':