isPathInfoBad() ){ wfHttpError( 403, 'Forbidden', 'Invalid file extension found in PATH_INFO. ' . 'mwScriptLoader must be accessed through the primary script entry point.' ); return; } // Verify the script loader is on: if ( !$wgEnableScriptLoader ) { echo '/*ScriptLoader is not enabled for this site. To enable add the following line to your LocalSettings.php'; echo '
$wgEnableScriptLoader=true;
*/'; echo 'alert(\'Script loader is disabled\');'; die( 1 ); } //moved to setup.php // load the mwEmbed language file: //$wgExtensionMessagesFiles['mwEmbed'] = "{$IP}/js2/mwEmbed/php/languages/mwEmbed.i18n.php"; // run jsScriptLoader action: $myScriptLoader = new jsScriptLoader(); $myScriptLoader->doScriptLoader(); wfProfileOut( 'mwScriptLoader.php' );