Manual:$wgResourceLoaderSources

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgResourceLoaderSources and the translation is 50% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Resource Loader: $wgResourceLoaderSources
Foreign module sources registry.
導入されたバージョン: 1.19.0 (r93247)
除去されたバージョン: 使用中
可能な値: 配列
既定値: array()
他の設定: アルファベット順 | 機能順

詳細

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.

例:

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