wiki.techinc.nl/tests/phpunit/data
Bartosz Dziewoński 566b185e9c resourceloader: Tweak RL\FilePath handling in packageFiles
ResourceLoader's FilePath is designed to allow a FileModule
to include files that exist outside of the module's localBasePath,
to allow skins and extensions to extend core MediaWiki modules.
This is accomplished by having the FileModule use the FilePath's
localBasePath instead, in FileModule::getLocalPath.
(Similarly for remoteBasePath, but these are going out of fashion.)

However, the code processing 'packageFiles' did not handle this right:
it used FilePath's localBasePath when it appeared as a 'file',
but not when it was returned by a 'callback' or 'versionCallback',
using the FileModule's localBasePath instead in that case. Most
existing uses of FilePath in 'packageFiles' required the same base
path as the module, so it was convenient to avoid providing it twice.

To keep that convenience (already relied on by some extensions too)
while also allowing skins and extensions to add files from their own
directories to existing modules, the code processing 'packageFiles'
now uses FilePath's base paths in all cases, but they are optional,
and will fall back to the FileModule's paths when not provided.

Follow-up to 2890bca27d.

Change-Id: I38a0761ae4633a567b685b52c1d73b6ce280ffb7
2022-05-27 22:40:41 +01:00
..
autoloader AutoLoader: provide methods for registering classes 2022-05-10 13:55:53 +10:00
categoriesrdf
composer tests: Remove unused composer.json sample data 2021-06-08 23:56:01 +00:00
css CSSJanus: Update from version 1.3.0 to version 2.0.0 2021-08-16 18:39:41 +00:00
db Bump minimum required version for upgrade to 1.31 2022-03-15 22:12:59 +01:00
dumps
exception build: Updating dependencies 2021-07-22 03:36:05 +00:00
filecontentshasher
filerepo
GhostFieldAccess
gitinfo
import
less
localisationcache
media Call ZipDirectoryReader from MimeAnalyzer 2022-05-03 14:43:26 +10:00
messages
MSCompoundFileReader Remove the executable flag from test files 2021-10-16 11:23:02 +00:00
parser
ParserCache Use uniform representation for ParserOutput "index policy" 2022-03-31 09:51:21 -04:00
registration
resourceloader build: Update eslint-config-wikimedia to 0.21.0 2021-11-09 21:08:55 +00:00
resourceloader-b resourceloader: Tweak RL\FilePath handling in packageFiles 2022-05-27 22:40:41 +01:00
rlfilepath
templates
upload
zip
.eslintrc.json eslint: Only apply client rules to client files 2022-02-09 02:40:11 +00:00