Add $IP to list of globals, since it is undefined otherwise
authorJens Frank <jeluf@users.mediawiki.org>
Sun, 24 Oct 2004 08:29:34 +0000 (08:29 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sun, 24 Oct 2004 08:29:34 +0000 (08:29 +0000)
includes/Setup.php

index 6e41cde..ae39a58 100644 (file)
@@ -16,7 +16,7 @@ if( defined( 'MEDIAWIKI' ) ) {
 # setting up a few globals.
 #
 
-global $wgProfiling, $wgProfileSampleRate, $wgIP, $wgUseSquid;
+global $wgProfiling, $wgProfileSampleRate, $wgIP, $wgUseSquid, $IP;
 
 if( !isset( $wgProfiling ) )
        $wgProfiling = false;
@@ -227,7 +227,7 @@ wfProfileOut( $fname.'-User' );
 wfProfileIn( $fname.'-language' );
 
 function setupLangObj(&$langclass, $langcode) {
-       global $wgUseLatin1;
+       global $wgUseLatin1, $IP;
 
 
        if( ! class_exists( $langclass ) ) {