X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=load.php;h=c6452fb475b34145d9909d37ddc30b9d5f893ade;hb=7489b1e8dfbe638bb9b16da787d89c669140c85b;hp=1d6a242575af3462c65b640b6a159360e07b9437;hpb=f56a905990f579a81f15ce636ab03758c15690df;p=lhc%2Fweb%2Fwiklou.git diff --git a/load.php b/load.php index 1d6a242575..c6452fb475 100644 --- a/load.php +++ b/load.php @@ -31,11 +31,9 @@ if ( !$wgRequest->checkUrlExtension() ) { return; } -// Respond to resource loading request. -// foo()->bar() syntax is not supported in PHP4, and this file needs to *parse* in PHP4. -$configFactory = ConfigFactory::getDefaultInstance(); +// Respond to ResourceLoader request $resourceLoader = new ResourceLoader( - $configFactory->makeConfig( 'main' ), + ConfigFactory::getDefaultInstance()->makeConfig( 'main' ), LoggerFactory::getInstance( 'resourceloader' ) ); $resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );