From: Chad Horohoe Date: Sun, 9 Aug 2009 12:55:56 +0000 (+0000) Subject: Make $site and $lang global, just to be safe. Call finalSetup() in loadWikimediaSetti... X-Git-Tag: 1.31.0-rc.0~40406 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=3b7500e3141fbdef2668b5863e8530f20387bfbb;p=lhc%2Fweb%2Fwiklou.git Make $site and $lang global, just to be safe. Call finalSetup() in loadWikimediaSettings() --- diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 22be3f3318..51ecfab240 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -572,7 +572,7 @@ abstract class Maintenance { * Do setup specific to WMF */ public function loadWikimediaSettings() { - global $IP, $wgNoDBParam, $wgUseNormalUser, $wgConf; + global $IP, $wgNoDBParam, $wgUseNormalUser, $wgConf, $site, $lang; if ( empty( $wgNoDBParam ) ) { # Check if we were passed a db name @@ -616,6 +616,8 @@ abstract class Maintenance { if ( $lang == 'test' && $site == 'wikipedia' ) { define( 'TESTWIKI', 1 ); } + + $this->finalSetup(); } /**