From: Chad Date: Thu, 28 Aug 2014 22:05:14 +0000 (+0000) Subject: Revert "Consolidate parts of WebStart.php and doMaintenance.php into Initialize.php" X-Git-Tag: 1.31.0-rc.0~14240^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=280d7a92fdb214d814b890b580a6166844547b46;p=lhc%2Fweb%2Fwiklou.git Revert "Consolidate parts of WebStart.php and doMaintenance.php into Initialize.php" Good idea, but moves things about too much and will break things. Let's revisit and not break things. This reverts commit 214931ed33124a36e01e105c41c7d7e4797bde82. Change-Id: I6f5026b572105cd9e7d6de12a491c7ee45ac3dbc --- diff --git a/includes/Initialize.php b/includes/Initialize.php deleted file mode 100644 index 4bc63f451d..0000000000 --- a/includes/Initialize.php +++ /dev/null @@ -1,49 +0,0 @@ -setup(); // to $maintenance->mSelf. Keep that here for b/c $self = $maintenance->getName(); -require_once "$IP/includes/Initialize.php"; +# Start the autoloader, so that extensions can derive classes from core files +require_once "$IP/includes/AutoLoader.php"; +# Stub the profiler +require_once "$IP/includes/profiler/Profiler.php"; + +# Start the profiler +$wgProfiler = array(); +if ( file_exists( "$IP/StartProfiler.php" ) ) { + require "$IP/StartProfiler.php"; +} + +// Some other requires +require_once "$IP/includes/Defines.php"; +require_once "$IP/includes/DefaultSettings.php"; + +# Load composer's autoloader if present +if ( is_readable( "$IP/vendor/autoload.php" ) ) { + require_once "$IP/vendor/autoload.php"; +} if ( defined( 'MW_CONFIG_CALLBACK' ) ) { # Use a callback function to configure MediaWiki