| Index: trunk/phase3/includes/Setup.php |
| — | — | @@ -29,6 +29,7 @@ |
| 30 | 30 | // Set various default paths sensibly... |
| 31 | 31 | if( $wgScript === false ) $wgScript = "$wgScriptPath/index$wgScriptExtension"; |
| 32 | 32 | if( $wgRedirectScript === false ) $wgRedirectScript = "$wgScriptPath/redirect$wgScriptExtension"; |
| | 33 | +if( $wgLoadScript === false ) $wgLoadScript = "$wgScriptPath/load$wgScriptExtension"; |
| 33 | 34 | |
| 34 | 35 | if( $wgArticlePath === false ) { |
| 35 | 36 | if( $wgUsePathInfo ) { |
| Index: trunk/phase3/includes/OutputPage.php |
| — | — | @@ -2281,7 +2281,7 @@ |
| 2282 | 2282 | } |
| 2283 | 2283 | |
| 2284 | 2284 | static function makeResourceLoaderLink( $skin, $modules, $only ) { |
| 2285 | | - global $wgUser, $wgLang, $wgRequest; |
| | 2285 | + global $wgUser, $wgLang, $wgRequest, $wgLoadScript; |
| 2286 | 2286 | // TODO: Should this be a static function of ResourceLoader instead? |
| 2287 | 2287 | $query = array( |
| 2288 | 2288 | 'modules' => implode( '|', array_unique( (array) $modules ) ), |
| — | — | @@ -2292,9 +2292,9 @@ |
| 2293 | 2293 | ); |
| 2294 | 2294 | // Automatically select style/script elements |
| 2295 | 2295 | if ( $only === 'styles' ) { |
| 2296 | | - return Html::linkedStyle( wfAppendQuery( wfScript( 'load' ), $query ) ); |
| | 2296 | + return Html::linkedStyle( wfAppendQuery( $wgLoadScript, $query ) ); |
| 2297 | 2297 | } else { |
| 2298 | | - return Html::linkedScript( wfAppendQuery( wfScript( 'load' ), $query ) ); |
| | 2298 | + return Html::linkedScript( wfAppendQuery( $wgLoadScript, $query ) ); |
| 2299 | 2299 | } |
| 2300 | 2300 | } |
| 2301 | 2301 | |
| Index: trunk/phase3/includes/DefaultSettings.php |
| — | — | @@ -142,6 +142,12 @@ |
| 143 | 143 | $wgRedirectScript = false; ///< defaults to |
| 144 | 144 | /**@}*/ |
| 145 | 145 | |
| | 146 | +/** |
| | 147 | + * The URL path to load.php. |
| | 148 | + * |
| | 149 | + * Defaults to "{$wgScriptPath}/load{$wgScriptExtension}". |
| | 150 | + */ |
| | 151 | +$wgLoadScript = false; |
| 146 | 152 | |
| 147 | 153 | /************************************************************************//** |
| 148 | 154 | * @name URLs and file paths |