X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=load.php;h=43c2fafce817a999276364e1acd7ba299f415664;hb=959c749a6ae4eab84c73ac70210a2c6b94d38e93;hp=0c7ea62e3f272723b9ba0b0f3a5ab181547df1a2;hpb=4760e057bb2f4db09ca395ec43d0172c92a42e19;p=lhc%2Fweb%2Fwiklou.git diff --git a/load.php b/load.php index 0c7ea62e3f..43c2fafce8 100644 --- a/load.php +++ b/load.php @@ -1,6 +1,6 @@ checkUrlExtension() ) { // Respond to resource loading request. // foo()->bar() syntax is not supported in PHP4, and this file needs to *parse* in PHP4. $configFactory = ConfigFactory::getDefaultInstance(); -$resourceLoader = new ResourceLoader( $configFactory->makeConfig( 'main' ) ); +$resourceLoader = new ResourceLoader( + $configFactory->makeConfig( 'main' ), + LoggerFactory::getInstance( 'resourceloader' ) +); $resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) ); -JobQueueGroup::pushLazyJobs(); - Profiler::instance()->setTemplated( true ); -wfLogProfilingData(); -// Shut down the database. -$lb = wfGetLBFactory(); -$lb->shutdown(); +$mediawiki = new MediaWiki(); +$mediawiki->doPostOutputShutdown( 'fast' );