Manual:$wgResourceLoaderSources

From mediawiki.org
This page is a translated version of the page Manual:$wgResourceLoaderSources and the translation is 38% complete.
ResourceLoader: $wgResourceLoaderSources
Foreign module sources registry.
Introducido en la versión:1.19.0 (r93247)
Eliminado en la versión:aún se usa
Valores permitidos:(array)
Valor predeterminado:[]

Detalles

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.

Ejemplo:

$wgResourceLoaderSources['foo'] = array(
    'loadScript' => 'http://example.org/w/load.php',
    'apiScript' => 'http://example.org/w/api.php'
);