Use firstChar() in firstLetterForLists()
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 3 Aug 2010 17:47:10 +0000 (17:47 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 3 Aug 2010 17:47:10 +0000 (17:47 +0000)
This will hopefully avoid regression in non-English languages when this
stub starts being used.

languages/Language.php

index 4003fb1..74a7fe0 100644 (file)
@@ -2991,6 +2991,6 @@ class Language {
                if ( $string[0] == "\0" ) {
                        $string = substr( $string, 1 );
                }
-               return strtoupper( mb_substr( $string, 0, 1 ) );
+               return strtoupper( $this->firstChar( $string ) );
        }
 }