From: Tim Starling Date: Sat, 15 May 2004 14:03:00 +0000 (+0000) Subject: bug fix in wfUtf8ToHTML X-Git-Tag: 1.3.0beta1~56 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=98f45933edc1e99a2525f470285e893228385939;p=lhc%2Fweb%2Fwiklou.git bug fix in wfUtf8ToHTML --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 80178b66d6..140f195fc0 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 ) {