Remove superfluous inclusion of SiteConfiguration in doMaintenance. It's in the AutoL...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 30 Jun 2011 21:25:52 +0000 (21:25 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 30 Jun 2011 21:25:52 +0000 (21:25 +0000)
As a result: rm DIY inclusion protection, since this was the only reason it was still needed.

includes/SiteConfiguration.php
maintenance/doMaintenance.php

index 469dda8..a59676e 100644 (file)
@@ -1,17 +1,4 @@
 <?php
-
-/**
- * The include paths change after this file is included from commandLine.inc,
- * meaning that require_once() fails to detect that it is including the same
- * file again. We use DIY C-style protection as a workaround.
- */
-
-// Hide this pattern from Doxygen, which spazzes out at it
-/// @cond
-if( !defined( 'SITE_CONFIGURATION' ) ){
-define( 'SITE_CONFIGURATION', 1 );
-/// @endcond
-
 /**
  * This is a class used to hold configuration settings, particularly for multi-wiki sites.
  */
index bf95da1..b797de6 100644 (file)
@@ -81,7 +81,6 @@ if ( defined( 'MW_CONFIG_CALLBACK' ) ) {
        # Maybe a hook?
        global $cluster;
        $cluster = 'pmtpa';
-       require_once( MWInit::compiledPath( 'includes/SiteConfiguration.php' ) );
        require( MWInit::interpretedPath( 'wmf-config/wgConf.php' ) );
        $maintenance->loadWikimediaSettings();
        require( MWInit::interpretedPath( '/wmf-config/CommonSettings.php' ) );