Fixed bug due to non-global scope when included from Setup.php
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 23 Oct 2004 10:23:05 +0000 (10:23 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 23 Oct 2004 10:23:05 +0000 (10:23 +0000)
languages/LanguageLatin1.php
languages/LanguageUtf8.php

index d66d215..c0f4cc3 100644 (file)
 # This will replace anything that can't be described in Latin-1 with
 # an ugly question mark (?) so don't use this mode on languages that
 # aren't suited to it!
-#
+
+# This file and LanguageUtf8.php may be included from within functions, so
+# we need to have global statements
+global $wgInputEncoding, $wgOutputEncoding, 
 
 $wgInputEncoding = "ISO-8859-1";
 $wgOutputEncoding = "ISO-8859-1";
index 698efce..4bd1f66 100644 (file)
@@ -2,6 +2,12 @@
 #$Id$
 if( defined( "MEDIAWIKI" ) ) {
 
+# This file and LanguageLatin1.php may be included from within functions, so
+# we need to have global statements
+
+global $wgInputEncoding, $wgOutputEncoding, $wikiUpperChars, $wikiLowerChars;
+global $wgDBname, $wgMemc;
+
 $wgInputEncoding    = "UTF-8";
 $wgOutputEncoding      = "UTF-8";