| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: Ifb1a0f04cc22b122ed99308c096d0ce4296e9097
|
|
|
|
|
| |
Bug: T251642
Change-Id: I6950ab0c9d0ef080dbe247f5b73458aac4d27f8a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These attributes are only accessed at a time when performance isn't
critical (e.g. tests), so we can skip caching them and read each
extension.json file again when we do need them.
At the same time, we want to reduce the size of the array that we're
caching due to PHP 7 performance regressions with APC (T187154).
'QUnitModules' is the first attribute to be converted into a lazy-loaded
attribute.
Bug: T220994
Change-Id: I224cdace05dbac00ff947c41daecb74b07c967bb
|
|
|
|
|
|
|
|
|
|
| |
Performed using:
git ls-files \*.json \*.php \*.xml \*.xsd \*.html \*.txt \*.sql | xargs sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba'
Excluded tests/parser/preprocess.
Change-Id: I513538ff13c942acfe589f15c5128a8df2b3ace9
|
|
|
|
|
|
|
|
| |
As specified in
<https://www.mediawiki.org/wiki/Manual:Extension_registration#Retaining_documentation>.
Bug: T215650
Change-Id: I2ff523828389fbec39cdf7c55046e7da901a2ecb
|
|
|
|
|
|
|
|
|
| |
As it's quite common that extensions and skins interact with each other, it's
useful to have a simple way to check if an extension version satisfies a
given constraint, as extensions change over time.
Bug: T202955
Change-Id: I19f9713caf89d647072a2bd7d598e739be383f4a
|
|
|
|
|
|
|
|
|
|
|
|
| |
The JSON specification permits duplicate keys, but doing so is almost
always nearly a mistake.
We can use the JSON lint library (added as
dev-requirement to composer), which is now also used to decode the
JSON (as it's the same step as validating the JSON).
Bug: T153507
Change-Id: Ia713a1906169333c1aa2aebdc0ed060d26428d72
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
readFromQueue() injects the content of AutoloadClasses to
$wgAutoloadClasses however it missed doing the same for
AutoloadNamespaces.
When using the installer with an extension having AutoloadNamespaces
set, its classes would not be found.
Make ExtensionRegistry append to AutoLoader::$psr4Namespaces, and add
a test to cover the new behavior.
Bug: T195783
Change-Id: Id61155867a4ca7d9bc4a347f8671da74b0fa490b
|
|
|
|
| |
Change-Id: Id1b87e020a220c96b42d86485da67d47b9d565f9
|
|
|
|
|
|
|
|
|
| |
If the "url" field in extension.json is pointing to mediawiki.org,
perform some extra validation steps:
* Require HTTPS
* Require the `www.mediawiki.org` canonical domain
Change-Id: I3371443d3f6c76f53437adf90a700969bba7d0e7
|
|
Change-Id: I883a502fc3ed6cd7b8651d9e5e78dba7177ead9c
|