Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -2478,7 +2478,10 @@ |
2479 | 2479 | * ResourceLoader::__construct() so that it cannot be unset. |
2480 | 2480 | * |
2481 | 2481 | * Example: |
2482 | | - * $wgResourceLoaderSources['foo'] = array( 'loadScript' => 'http://example.org/w/load.php' ); |
| 2482 | + * $wgResourceLoaderSources['foo'] = array( |
| 2483 | + * 'loadScript' => 'http://example.org/w/load.php', |
| 2484 | + * 'apiScript' => 'http://example.org/w/api.php' |
| 2485 | + * ); |
2483 | 2486 | */ |
2484 | 2487 | $wgResourceLoaderSources = array(); |
2485 | 2488 | |
Index: trunk/phase3/includes/resourceloader/ResourceLoader.php |
— | — | @@ -188,7 +188,7 @@ |
189 | 189 | wfProfileIn( __METHOD__ ); |
190 | 190 | |
191 | 191 | // Add 'local' source first |
192 | | - $this->addSource( 'local', array( 'loadScript' => $wgLoadScript ) ); |
| 192 | + $this->addSource( 'local', array( 'loadScript' => $wgLoadScript, 'apiScript' => wfScript( 'api' ) ) ); |
193 | 193 | |
194 | 194 | // Add other sources |
195 | 195 | $this->addSource( $wgResourceLoaderSources ); |