Localisation updates for core messages from translatewiki.net (2009-09-04 22:56 UTC)
[lhc/web/wiklou.git] / mwScriptLoader.php
index 527831e..c884127 100644 (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',
+               'Invalid file extension found in PATH_INFO. ' . 
                'mwScriptLoader must be accessed through the primary script entry point.' );
        return;
 }
@@ -51,4 +52,4 @@ if ( !$wgEnableScriptLoader ) {
 $myScriptLoader = new jsScriptLoader();
 $myScriptLoader->doScriptLoader();
 
-wfProfileOut( 'mvwScriptLoader.php' );
\ No newline at end of file
+wfProfileOut( 'mwScriptLoader.php' );