summaryrefslogtreecommitdiff
path: root/load.php
diff options
context:
space:
mode:
Diffstat (limited to 'load.php')
-rw-r--r--load.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/load.php b/load.php
index 1790f483..655f3092 100644
--- a/load.php
+++ b/load.php
@@ -23,7 +23,7 @@
*/
// Bail if PHP is too low
-if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) < 0 ) {
+if ( !function_exists( 'version_compare' ) || version_compare( PHP_VERSION, '5.3.2' ) < 0 ) {
// We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+
require dirname( __FILE__ ) . '/includes/PHPVersionError.php';
wfPHPVersionError( 'load.php' );
@@ -39,7 +39,9 @@ if ( !$wgRequest->checkUrlExtension() ) {
}
// Respond to resource loading request
-$resourceLoader = new ResourceLoader();
+$resourceLoader = new ResourceLoader(
+ ConfigFactory::getDefaultInstance()->makeConfig( 'main' )
+);
$resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );
wfProfileOut( 'load.php' );