r89394 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89393‎ | r89394 | r89395 >
Date:04:12, 3 June 2011
Author:demon
Status:ok
Tags:
Comment:
$wgDatabase not allowed anymore
Modified paths:
  • /trunk/tools/code-utils/check-vars.php (modified) (history)

Diff [purge]

Index: trunk/tools/code-utils/check-vars.php
@@ -199,13 +199,11 @@
200200 }
201201
202202 protected static $mGlobalsPerFile = array( # Variables which are OK, but only on a few files
203 - '$wgDatabase' => array( 'updaters.inc', 'Installer.php', 'install-utils.inc', 'update.php', 'SqliteInstaller.php' ), # For update scripts
204203 '$wgHtmlEntities' => array( 'Sanitizer.php' ),
205204 '$wgHtmlEntityAliases' => array( 'Sanitizer.php' ),
206205 '$wgFullyInitialised' => array( /* Set */ 'Setup.php', /* read */ 'Exception.php' ),
207206 '$wgContLanguageCode' => array( 'Setup.php' ),
208207 '$wgUseLatin1' => array( 'upgrade1_5.php' ), # If you upgrade from MW < 1.5 it will be there
209 - '$wgDatabase' => array( 'DatabaseUpdater.php' ),
210208 '$wgExtPGNewFields' => array( 'DatabaseUpdater.php', 'PostgresUpdater.php' ),
211209 '$wgExtPGAlteredFields' => array( 'DatabaseUpdater.php', 'PostgresUpdater.php' ),
212210 '$optionsWithArgs' => array( 'commandLine.inc' ),

Status & tagging log