Manual:$wgResourceLoaderSources/en

From Linux Web Expert

Revision as of 21:10, 12 June 2021 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> ResourceLoader</translate>: $wgResourceLoaderSources
Foreign module sources registry.
<translate> Introduced in version:</translate>1.19.0 (r93247)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array)
<translate> Default value:</translate>[]

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'
);