X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=94da4245e8ded7656b29916ac1b676e70a489c0a;hb=87a8ac48460c7643cf1157b43442384e9dc8951f;hp=9f722afd866950a33f8ec24a13872a07c140ea2d;hpb=e8ec72c26d1b1ac9a55d2a4d4e24a1d98e400a22;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index 9f722afd86..94da4245e8 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -36,8 +36,10 @@ if ( !defined( 'MEDIAWIKI' ) ) { $fname = 'Setup.php'; $ps_setup = Profiler::instance()->scopedProfileIn( $fname ); -// If any extensions are still queued, force load them +// Load queued extensions ExtensionRegistry::getInstance()->loadFromQueue(); +// Don't let any other extensions load +ExtensionRegistry::getInstance()->finish(); // Check to see if we are at the file scope if ( !isset( $wgVersion ) ) { @@ -497,10 +499,6 @@ if ( $wgDebugToolbar && !$wgCommandLineMode ) { MWDebug::init(); } -if ( !class_exists( 'AutoLoader' ) ) { - require_once "$IP/includes/AutoLoader.php"; -} - // Reset the global service locator, so any services that have already been created will be // re-created while taking into account any custom settings and extensions. MediaWikiServices::resetGlobalInstance( new GlobalVarConfig(), 'quick' ); @@ -878,7 +876,6 @@ if ( !$wgCommandLineMode ) { Pingback::schedulePingback(); } -wfDebug( "Fully initialised\n" ); $wgFullyInitialised = true; Profiler::instance()->scopedProfileOut( $ps_extensions );