<?php
/**
- * mvwScriptLoader.php
+ * mwScriptLoader.php
* Script Loading Library for MediaWiki
*
* @file
// include WebStart.php
require_once('includes/WebStart.php');
-wfProfileIn( 'mvwScriptLoader.php' );
+wfProfileIn( 'mwScriptLoader.php' );
-if( strpos( wfGetScriptUrl(), "mwScriptLoader.php" ) === false ){
+if( $wgRequest->isPathInfoBad() ){
wfHttpError( 403, 'Forbidden',
- 'mvwScriptLoader must be accessed through the primary script entry point.' );
+ 'Invalid file extension found in PATH_INFO. ' .
+ 'mwScriptLoader must be accessed through the primary script entry point.' );
return;
}
// Verify the script loader is on:
$myScriptLoader = new jsScriptLoader();
$myScriptLoader->doScriptLoader();
-wfProfileOut( 'mvwScriptLoader.php' );
\ No newline at end of file
+wfProfileOut( 'mwScriptLoader.php' );