Follow up on r48015, fix a bug which caused 'A' and 'D' won't work.
authorPhilip Tzou <philip@users.mediawiki.org>
Wed, 25 Mar 2009 17:30:59 +0000 (17:30 +0000)
committerPhilip Tzou <philip@users.mediawiki.org>
Wed, 25 Mar 2009 17:30:59 +0000 (17:30 +0000)
languages/LanguageConverter.php

index 3be46f9..dcfb8ba 100644 (file)
@@ -981,7 +981,7 @@ class ConverterRule {
                                if ( in_array($variant, $flags) )
                                        $flags_temp[] = $variant;
                        }
-                       if ( count($flags_temp) == 0 )
+                       if ( count($flags_temp) !== 0 )
                                $flags = $flags_temp;
                }
                if ( count($flags) == 0 )