ResourceLoaderFileModule: Implement remoteSkinPath option
authorDaniel Friesen <daniel@nadir-seen-fire.com>
Sun, 1 Jun 2014 17:25:11 +0000 (10:25 -0700)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 17 Jun 2014 14:05:19 +0000 (16:05 +0200)
commit07b80668beefe53af039bd7b5aee895b467800d1
tree5d81c53e4f7afaa979dfdc35d42326c99deb4fb7
parentf6d6d4bbafe7206aada9405d73022e9e1f2a0e37
ResourceLoaderFileModule: Implement remoteSkinPath option

remoteSkinPath works the same as remoteExtPath but is relative to skins/ instead of extensions/

This will allow skins to register modules using:
 $wgResourceModules['skin.myskin'] = array(
   // ...
   'localBasePath' => __DIR__,
   'remoteSkinPath' => 'myskin',
 );

Instead of using:
 'remoteBasePath' => $GLOBALS['wgStylePath'] . '/myskin', // or
 'remoteBasePath' => &$GLOBALS['wgStylePath'],

Change-Id: I0e8c4a37a224e9528c9c5aa5417f0f56dbb89b97
RELEASE-NOTES-1.24
includes/resourceloader/ResourceLoaderFileModule.php
resources/Resources.php