Handbuch:$wgResourceLoaderSources
ResourceLoader: $wgResourceLoaderSources | |
---|---|
Foreign module sources registry. |
|
Eingeführt in Version: | 1.19.0 (r93247) |
Entfernt in Version: | Weiterhin vorhanden |
Erlaubte Werte: | (Array) |
Standardwert: | [] |
Andere Einstellungen: Alphabetisch | Nach Funktion |
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.
Beispiel:
$wgResourceLoaderSources['foo'] = array(
'loadScript' => 'http://example.org/w/load.php',
'apiScript' => 'http://example.org/w/api.php'
);