bug fix in wfUtf8ToHTML
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 15 May 2004 14:03:00 +0000 (14:03 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 15 May 2004 14:03:00 +0000 (14:03 +0000)
includes/GlobalFunctions.php

index 80178b6..140f195 100644 (file)
@@ -174,7 +174,8 @@ function wfMungeToUtf8($string) {
 }
 
 # Converts a single UTF-8 character into the corresponding HTML character entity
-function wfUtf8Entity( $char ) {
+function wfUtf8Entity( $matches ) {
+       $char = $matches[0];
        # Find the length
        $z = ord( $char{0} );
        if ( $z & 0x80 ) {