X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=load.php;h=43c2fafce817a999276364e1acd7ba299f415664;hb=ebc55440f97f4f6f47c59c3fe0fc1ae55d783cbb;hp=d77a689dea144da60768413e8258f509694b6ba0;hpb=fd62703d505e3e233fb7842d7349a4e9302bb5f4;p=lhc%2Fweb%2Fwiklou.git diff --git a/load.php b/load.php index d77a689dea..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' );