diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /includes/normal/UtfNormalUtil.php | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'includes/normal/UtfNormalUtil.php')
-rw-r--r-- | includes/normal/UtfNormalUtil.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/normal/UtfNormalUtil.php b/includes/normal/UtfNormalUtil.php index 0c78e5ec..bfad7095 100644 --- a/includes/normal/UtfNormalUtil.php +++ b/includes/normal/UtfNormalUtil.php @@ -25,8 +25,6 @@ * @ingroup UtfNormal */ -require_once dirname(__FILE__).'/UtfNormalDefines.php'; - /** * Return UTF-8 sequence for a given Unicode code point. * May die if fed out of range data. @@ -93,7 +91,7 @@ function utf8ToHexSequence( $str ) { */ function utf8ToCodepoint( $char ) { # Find the length - $z = ord( $char{0} ); + $z = ord( $char[0] ); if ( $z & 0x80 ) { $length = 0; while ( $z & 0x80 ) { @@ -118,7 +116,7 @@ function utf8ToCodepoint( $char ) { # Add in the free bits from subsequent bytes for ( $i=1; $i<$length; $i++ ) { $z <<= 6; - $z |= ord( $char{$i} ) & 0x3f; + $z |= ord( $char[$i] ) & 0x3f; } return $z; |