Using UTF-8 compatible ucfirst/lcfirst -- bug fix
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 25 Jan 2004 08:49:45 +0000 (08:49 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 25 Jan 2004 08:49:45 +0000 (08:49 +0000)
includes/MessageCache.php

index 5b95cef..bd06f71 100755 (executable)
@@ -94,9 +94,11 @@ class MessageCache
        
        function getKeys() {
                global $wgAllMessagesEn, $wgLang;
-               $ucfirst = get_class($wgLang) . "::ucfirst";
                if ( !$this->mKeys ) {
-                       $this->mKeys = array_map( $ucfirst, array_keys( $wgAllMessagesEn ) );
+                       $this->mKeys = array();
+                       foreach ( $wgAllMessagesEn as $key => $value ) {
+                               array_push( $wgLang->ucfirst( $key ), $this->mKeys );
+                       }
                }
                return $this->mKeys;
        }