}
}
-# Load composer's autoloader if present
-if ( is_readable( "$IP/vendor/autoload.php" ) ) {
- require_once "$IP/vendor/autoload.php";
-}
-
# Get MWInit class
require_once "$IP/includes/Init.php";
# Load default settings
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
MWFunction::call( MW_CONFIG_CALLBACK );
// to $maintenance->mSelf. Keep that here for b/c
$self = $maintenance->getName();
-# Load composer's autoloader if present
-if ( is_readable( "$IP/vendor/autoload.php" ) ) {
- require_once "$IP/vendor/autoload.php";
-}
# Get the MWInit class
require_once "$IP/includes/Init.php";
# Start the autoloader, so that extensions can derive classes from core files
require_once "$IP/includes/Defines.php";
require_once MWInit::compiledPath( '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
MWFunction::call( MW_CONFIG_CALLBACK );