Add CSS classes (including namespace and pagename) to the enhanced recent changes...
[lhc/web/wiklou.git] / load.php
index 9e18a5b..9f594e5 100644 (file)
--- a/load.php
+++ b/load.php
@@ -1,5 +1,7 @@
 <?php
 /**
+ * This file is the entry point for the resource loader.
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  * http://www.gnu.org/copyleft/gpl.html
  *
+ * @file
  * @author Roan Kattouw
  * @author Trevor Parscal
  *
  */
 
-/**
- * @file
- * This file is the entry point for the resource loader.
- */
 require ( dirname( __FILE__ ) . '/includes/WebStart.php' );
 wfProfileIn( 'load.php' );
 
@@ -47,10 +45,11 @@ if ( $wgRequest->isPathInfoBad() ) {
 }
 
 // Respond to resource loading request
-ResourceLoader::respond( new ResourceLoaderContext( $wgRequest, $wgServer . $wgScriptPath . '/load.php' ) );
+$resourceLoader = new ResourceLoader();
+$resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );
 
 wfProfileOut( 'load.php' );
 wfLogProfilingData();
 
 // Shut down the database
-wfGetLBFactory()->shutdown();
\ No newline at end of file
+wfGetLBFactory()->shutdown();