From 280d7a92fdb214d814b890b580a6166844547b46 Mon Sep 17 00:00:00 2001 From: Chad Date: Thu, 28 Aug 2014 22:05:14 +0000 Subject: [PATCH] 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 --- includes/Initialize.php | 49 ----------------------------------- includes/WebStart.php | 40 +++++++++++++++++++++++++--- maintenance/Maintenance.php | 5 ++++ maintenance/doMaintenance.php | 20 +++++++++++++- 4 files changed, 61 insertions(+), 53 deletions(-) delete mode 100644 includes/Initialize.php 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 -- 2.20.1