Commit graph

433 commits

Author SHA1 Message Date
Umherirrender 5482c272bc Use HookHandlers for core hooks
The use of "HookHandlers" attribute in extension.json makes it possible
to inject services into hook handler classes in a future patch.

Bug: T338435
Change-Id: Iadeed8e4735f95387f2faed4bc4305327bff3c8a
2023-09-24 22:12:07 +02:00
Translation updater bot 044039a02b Localisation updates from https://translatewiki.net.
Change-Id: Ib71d9850c018c8e9789810c77cc794049ec7bc2a
2023-09-21 10:16:46 +02:00
James D. Forrester 789d166951 build: Use conf.MessageDirs for banana path config
Rather than configuring manually, re-use the specification in the
repo's extension.json file, like we do elsewhere; this way, if we
add further i18n files in future, or change their paths, we won't
need to update this configuration.

Change-Id: I4fec61599b1a8b9ac9de93983dfbc2e0dfa97286
2023-09-18 19:54:37 +01:00
James D. Forrester ab94c0836e build: Update css-sanitizer requirement from 4.0.0 to 5.0.0
Depends-On: I7e0fb989236df696af3d4a0a1e7b3ab4d12fe571
Change-Id: Ib7950b17581d69c1c9197e3a3109d3da4c735a3a
2023-08-29 12:03:51 -04:00
gerritbot cfa97927e4 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: Ib7950b17581d69c1c9197e3a3109d3da4c735a33
2023-08-19 12:55:12 +00:00
James D. Forrester 062d4e8a7c build: Update MediaWiki requirement to 1.41
All extensions in Wikimedia production are expected to track MediaWiki's release directly.

Change-Id: Icd82acef9395aba1225ade8fd913aa5dc18bdcce
2023-08-19 14:09:28 +08:00
Translation updater bot f0a0c4c349 Localisation updates from https://translatewiki.net.
Change-Id: I492cfd7edf1bc5474b78f187d2bcaa899d6d05f3
2023-08-16 09:12:27 +02:00
jenkins-bot b6760f63b5 Merge "Create HookRunner class and the hook handler interfaces" 2023-08-06 09:39:57 +00:00
Translation updater bot f6612f39aa Localisation updates from https://translatewiki.net.
Change-Id: Id279b7d1702f8ab067c4585af825a3baf981d8b4
2023-07-24 09:39:52 +02:00
Umherirrender 687207f0bf Create HookRunner class and the hook handler interfaces
Bug: T338435
Change-Id: I34726d15dad5045f5c1b00ec7796b7b5f1516d12
2023-06-08 13:59:15 +02:00
libraryupgrader d58af6cc28 build: Updating grunt-banana-checker to 0.11.0
Change-Id: Icedf258359393ec08d7e06763ffabe298659f034
2023-06-02 15:15:39 +00:00
Translation updater bot 0d792d7c47 Localisation updates from https://translatewiki.net.
Change-Id: Ib28b8af4aba42f51ba9240ac8eb9d20785f798bb
2023-06-01 08:44:09 +02:00
Umherirrender 6b7d6f91c3 tests: Make PHPUnit data providers static
Initally used a new sniff with autofix (T333745)

Bug: T332865
Change-Id: I47b6b34d1e6159b51c14d9a5a2d21242dfbf8fff
2023-05-21 16:10:11 +00:00
Umherirrender e997750927 tests: Adjust output format for html changes (self-closing xhtml)
Follow-Up: I4bbfa47fbf6e30fb90d920d6d02cdf6e0b1cdb46
Change-Id: I06045e1011de9035f0be759d953f3145293c66f2
2023-05-21 18:07:53 +02:00
Umherirrender c1e2fce9a2 Replace deprecated Hooks::run
Bug: T335536
Change-Id: Ifba4d0f478d9abc0ae735f1a6cd079a69267632c
2023-05-06 23:07:29 +02:00
Translation updater bot 877f03eea1 Localisation updates from https://translatewiki.net.
Change-Id: Ic6a76a9ac69203cb0d4f47aa0edaf86ec88e4d13
2023-05-05 10:41:05 +02:00
libraryupgrader 46d8ef9af7 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I0a9d16c326f79dd223722614b3535bce55ad54ba
2023-05-04 13:11:46 +00:00
Translation updater bot d5cfba7dd8 Localisation updates from https://translatewiki.net.
Change-Id: I11607b751f80c4b1b73fb5044990357a21da1a72
2023-05-03 08:44:30 +02:00
libraryupgrader 73c552b820 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: Iafa646f2db2c379ebe3ce839dd8f3f66cf9691b6
2023-04-29 12:28:26 +00:00
Translation updater bot 2259e94a59 Localisation updates from https://translatewiki.net.
Change-Id: Iccb2c7d8bcae29ac0ee81570a1b0bb4b622514cc
2023-04-03 09:19:10 +02:00
libraryupgrader 262b1cf19d build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1

Change-Id: I51c18cf2ec27bfa643283975376ecd9ea351ee7c
2023-03-15 23:51:22 +00:00
libraryupgrader dc743560db build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: Ie323b8e7543635f379b85c5e744977655fd7893e
2023-03-12 11:59:52 +00:00
Translation updater bot 237f28de6a Localisation updates from https://translatewiki.net.
Change-Id: Ia1d65107e3a069a6dd23a66860c0f2218705d2b4
2023-02-23 08:40:11 +01:00
Translation updater bot 282d7450f5 Localisation updates from https://translatewiki.net.
Change-Id: Ia870a7e7f68715939ca33800f20411d82eda8652
2023-02-13 08:31:15 +01:00
Translation updater bot cd2d2edf8b Localisation updates from https://translatewiki.net.
Change-Id: I794c805a07fd0707f1cfc63229ba871ad115cfda
2023-01-23 08:24:12 +01:00
Translation updater bot ae63c71b77 Localisation updates from https://translatewiki.net.
Change-Id: I2418b3966fd23892c724b295a7ded3ce6141e2b3
2023-01-10 08:25:43 +01:00
russ-rogovetz eed8f4892d Replace getNativeData to getText for TemplateStyles
Replace Content::getNativeData() calls with TextContent::getText() in TemplateStyles extension.

Bug: T283682
Change-Id: I98b240eab220c3a1332a7bafbf0c1e1794bc0448
2023-01-03 19:02:10 +00:00
Translation updater bot 38aaa56d36 Localisation updates from https://translatewiki.net.
Change-Id: I929bd0ef1fcbedf252a7d3ca08392ad7ba9154e4
2022-12-21 09:18:11 +01:00
Translation updater bot 85110ddedb Localisation updates from https://translatewiki.net.
Change-Id: I2f149ce4c69a6134d4c9fb52eb283d84986b3b4a
2022-12-14 08:16:32 +01:00
libraryupgrader 9dec102395 build: Updating mediawiki/mediawiki-codesniffer to 40.0.1
Change-Id: Id311eb6cb61f538ccf45be2ba96d2cf85c99ec1c
2022-11-16 23:25:49 +00:00
Translation updater bot 3943f83b90 Localisation updates from https://translatewiki.net.
Change-Id: If08b57c85e492c88576fcf73066b368f5d9631d4
2022-11-14 08:11:16 +01:00
Reedy acecfc462d Fix remaining phpcs exclusion
Change-Id: I78ac050a998f62f8b0258f0549b9e4f13cc95f0b
2022-11-10 16:56:02 -07:00
Translation updater bot 542b92e2db Localisation updates from https://translatewiki.net.
Change-Id: I6d7e3a11b1e78047603e2c16d3e72d8a0973676c
2022-11-10 08:12:51 +01:00
Translation updater bot b9fe936a7a Localisation updates from https://translatewiki.net.
Change-Id: I5d055fabb194702464cba06a43810fb4e56a86db
2022-11-09 08:59:40 +01:00
libraryupgrader f002151cdf build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: I8ebc38bc398f72fe05c7e1b38aabb3f52832e14d
2022-10-21 20:16:31 +00:00
jenkins-bot 9cd60a9753 Merge "build: Updating mediawiki/mediawiki-phan-config to 0.12.0" 2022-10-10 20:22:16 +00:00
Translation updater bot 818432208b Localisation updates from https://translatewiki.net.
Change-Id: I0e96947bd6a6e399e0e642946317d90ed0a26433
2022-10-10 10:21:23 +02:00
libraryupgrader ed10de4929 build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: Ib55f8796093b7fcab13069afbb45993de725d26b
2022-10-09 16:11:25 +00:00
libraryupgrader f31f04ba0d build: Updating grunt-banana-checker to 0.10.0
Change-Id: I7dd9ced098c3cfc25aafaa283e199f8afdf05281
2022-10-07 23:07:36 -04:00
Kunal Mehta 08cc84f3d0 Suppress PhanUndeclaredProperty phan errors
For `\Parser->extTemplateStylesCache`, which is similar to Scribunto's
`\Parser->scribunto_engine`, which we also suppress.

Change-Id: If25dc88407ba33c09875577231a75b16d9cba8e7
2022-10-07 23:06:08 -04:00
Translation updater bot 1e845b0578 Localisation updates from https://translatewiki.net.
Change-Id: I1aadd21467bd3815651e3d56c06ce329a8d9abab
2022-09-28 08:22:57 +02:00
Translation updater bot 691850ae54 Localisation updates from https://translatewiki.net.
Change-Id: I4c4ad95039a0aa2a1e037978863d94ca2788ee80
2022-09-26 08:16:28 +02:00
Translation updater bot f89c1abda4 Localisation updates from https://translatewiki.net.
Change-Id: I9d952f2129d87e0efc40af91cd866ab984f122dd
2022-09-09 10:10:54 +02:00
Timo Tijhof 994cf917ec Hooks: Remove use of unsafe inDebugMode() from handleTag()
The handleTag() method is used for parsing `<templatestyles>` in
wikitext. The result of that should not vary by unregistered variables
such as ResourceLoader's `debug` parameter, or user cookies, which
seem likely to cause cache poisoning.

Bug: T36738
Change-Id: I85ab7bc694858bc8e7fe2f3cc79197ff4f2d1c38
2022-07-28 02:22:59 +00:00
Translation updater bot 1c1213dd6d Localisation updates from https://translatewiki.net.
Change-Id: I8f98d1e59b2047b0d52be43862625e685b06d7e7
2022-07-25 08:39:22 +02:00
Reedy c63fc13ff1 Update wikimedia/css-sanitizer to ~4.0.0
Change-Id: Ideac939b475fb95bf33ae8a77e4c2d87e6bcb05a
Depends-On: I5d0d34a8931a22a2c7f31e0da4897be55fdedfc0
2022-07-08 19:59:25 +00:00
Translation updater bot a9e25dcb35 Localisation updates from https://translatewiki.net.
Change-Id: Ica91f96c656e8699d062201f73de849aea83f0c1
2022-06-22 08:14:02 +02:00
Translation updater bot fa11217fb1 Localisation updates from https://translatewiki.net.
Change-Id: Ife10a06848e8ace0f47aeeabb3b0f5b507e269fd
2022-06-06 09:26:50 +02:00
Translation updater bot f49a1be7d7 Localisation updates from https://translatewiki.net.
Change-Id: I445518bea10b1a99463314958442ef1dce6b9f1a
2022-06-02 08:15:23 +02:00
libraryupgrader 7714fe2a62 build: Updating grunt to 1.5.3
Change-Id: I424f0009670875ed13bd17fa5b6825a670261cf6
2022-05-27 02:00:50 +00:00