From 1fad4c28da5e7d0326191f819703726dc2025231 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 4 Jun 2004 13:29:16 +0000 Subject: [PATCH] removing unneeded global variables declarations in ucfirst() & lcfirst() --- languages/LanguageUtf8.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/languages/LanguageUtf8.php b/languages/LanguageUtf8.php index 26d8fdd411..85efec3798 100644 --- a/languages/LanguageUtf8.php +++ b/languages/LanguageUtf8.php @@ -19,7 +19,7 @@ class LanguageUtf8 extends Language { function ucfirst( $string ) { # For most languages, this is a wrapper for ucfirst() # But that doesn't work right in a UTF-8 locale - global $wikiUpperChars, $wikiLowerChars; + global $wikiUpperChars; return preg_replace ( "/^([\\x00-\\x7f]|[\\xc0-\\xff][\\x80-\\xbf]*)/e", "strtr ( \"\$1\" , \$wikiUpperChars )", @@ -27,7 +27,7 @@ class LanguageUtf8 extends Language { } function lcfirst( $string ) { - global $wikiUpperChars, $wikiLowerChars; + global $wikiLowerChars; return preg_replace ( "/^([\\x00-\\x7f]|[\\xc0-\\xff][\\x80-\\xbf]*)/e", "strtr ( \"\$1\" , \$wikiLowerChars )", -- 2.20.1