| ResourceLoader: $wgResourceLoaderSources | |
|---|---|
| Foreign module sources registry. |
|
| Introduced in version: | 1.19.0 (r93247) |
| Removed in version: | still in use |
| Allowed values: | (array) |
| Default value: | [] |
| Other settings: Alphabetical | By function | |
Details
Extensions can register foreign module sources here.
The default "local" source for modules from the local wiki is not set in this array.
Instead that one is defined by ResourceLoader::__construct() so that it cannot be unset or overwritten.
Example:
$wgResourceLoaderSources['foo'] = array(
'loadScript' => 'http://example.org/w/load.php',
'apiScript' => 'http://example.org/w/api.php'
);
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.