X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=load.php;h=4d34e5ddca3ee6ca9f4365e29ceadcdf87c0b977;hp=1997fe73fcdd0852d0cbc2ccc71c162b322b136b;hb=e5ef0fd0c6607dd34f6dee69d716b159662a0a34;hpb=53aa586553ce103862f0835130ef2ea3193be0fd diff --git a/load.php b/load.php index 1997fe73fc..4d34e5ddca 100644 --- a/load.php +++ b/load.php @@ -22,7 +22,6 @@ * @author Trevor Parscal */ -use MediaWiki\Logger\LoggerFactory; use MediaWiki\MediaWikiServices; // This endpoint is supposed to be independent of request cookies and other @@ -40,11 +39,7 @@ if ( !$wgRequest->checkUrlExtension() ) { // writes when getting database connections for ResourceLoader. (T192611) MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection(); -// Set up ResourceLoader -$resourceLoader = new ResourceLoader( - ConfigFactory::getDefaultInstance()->makeConfig( 'main' ), - LoggerFactory::getInstance( 'resourceloader' ) -); +$resourceLoader = MediaWikiServices::getInstance()->getResourceLoader(); $context = new ResourceLoaderContext( $resourceLoader, $wgRequest ); // Respond to ResourceLoader request