$wgRedirectScript = false; ///< defaults to
/**@}*/
+/**
+ * The URL path to load.php.
+ *
+ * Defaults to "{$wgScriptPath}/load{$wgScriptExtension}".
+ */
+$wgLoadScript = false;
/************************************************************************//**
* @name URLs and file paths
}
static function makeResourceLoaderLink( $skin, $modules, $only ) {
- global $wgUser, $wgLang, $wgRequest;
+ global $wgUser, $wgLang, $wgRequest, $wgLoadScript;
// TODO: Should this be a static function of ResourceLoader instead?
$query = array(
'modules' => implode( '|', array_unique( (array) $modules ) ),
);
// Automatically select style/script elements
if ( $only === 'styles' ) {
- return Html::linkedStyle( wfAppendQuery( wfScript( 'load' ), $query ) );
+ return Html::linkedStyle( wfAppendQuery( $wgLoadScript, $query ) );
} else {
- return Html::linkedScript( wfAppendQuery( wfScript( 'load' ), $query ) );
+ return Html::linkedScript( wfAppendQuery( $wgLoadScript, $query ) );
}
}
// Set various default paths sensibly...
if( $wgScript === false ) $wgScript = "$wgScriptPath/index$wgScriptExtension";
if( $wgRedirectScript === false ) $wgRedirectScript = "$wgScriptPath/redirect$wgScriptExtension";
+if( $wgLoadScript === false ) $wgLoadScript = "$wgScriptPath/load$wgScriptExtension";
if( $wgArticlePath === false ) {
if( $wgUsePathInfo ) {