Commit graph

357 commits

Author SHA1 Message Date
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
libraryupgrader 3c2a967d65 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
* mediawiki/mediawiki-phan-config: 0.11.0 → 0.11.1
* php-parallel-lint/php-console-highlighter: 0.5.0 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

npm:
* eslint-config-wikimedia: 0.20.0 → 0.22.1
* grunt: 1.4.0 → 1.5.2
* grunt-eslint: 23.0.0 → 24.0.0
* async: 3.2.0 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25

Additional changes:
* Set `name` in package.json.

Change-Id: Ibf55736c404151cae62dd890cb49f57e0281d773
2022-05-22 01:19:07 +00:00
Translation updater bot 3defc21733 Localisation updates from https://translatewiki.net.
Change-Id: I0ac94756897ae52dd706001971c7e9b93c44853b
2022-05-16 08:25:24 +02:00
Translation updater bot a0f32c42b0 Localisation updates from https://translatewiki.net.
Change-Id: I6b9829e8e0a216d7c8c7f68704f326debb409437
2022-04-05 08:26:13 +02:00
jenkins-bot 71d75b731f Merge "Namespace extension" 2022-03-05 16:00:06 +00:00
Translation updater bot 5ac95d79ba Localisation updates from https://translatewiki.net.
Change-Id: I3692215da576c03de1089fb64388224452fdb47c
2022-03-02 09:37:23 +01:00
Translation updater bot db7ebd5e37 Localisation updates from https://translatewiki.net.
Change-Id: I9f3af06f55689c52a3591c77dc0e7621d7997be7
2022-02-25 09:45:55 +01:00
Reedy 5d7bc99cae Use namespaced quietCall
Change-Id: Ifcacc35721d5509c3bc1fe602587c0701af5201f
2022-02-24 20:29:18 +00:00
Translation updater bot 017fb7490b Localisation updates from https://translatewiki.net.
Change-Id: Ia0921bbd873d37b3b2379b2f7845170515d582de
2022-02-11 08:42:22 +01:00
Reedy 3b337af58d Namespace extension
Change-Id: I7f64539f1c9c4c03088e28e99f77a9acc503f627
2022-02-06 15:05:09 +00:00
Translation updater bot 583c930a4b Localisation updates from https://translatewiki.net.
Change-Id: I215afff889d2296556e7aa7a4c8b026f61ae1c61
2022-01-17 08:13:05 +01:00
Translation updater bot 27d152e25a Localisation updates from https://translatewiki.net.
Change-Id: Ib926cf55ed57c550fd36f24559873c6bc0a29b94
2022-01-13 08:27:26 +01:00
Alexander Vorwerk 57a1d0196b Avoid using WikiPage::factory()
WikiPage::factory() is deprecated since 1.36 and should be replaced
with WikiPageFactory::newFromTitle().

Bug: T297688
Change-Id: I6c754b872c3b60ad724af8c18faacbf7320579fa
2021-12-16 23:56:08 +01:00
Translation updater bot a2f5b987a7 Localisation updates from https://translatewiki.net.
Change-Id: Iee5e9a4df5b3dcd122cc20815843fe126f30efec
2021-12-02 08:42:06 +01:00
Translation updater bot 940acebebf Localisation updates from https://translatewiki.net.
Change-Id: I27dd377564719d86a5b356fe9df2f70c5f65a73a
2021-11-29 08:12:33 +01:00
Roman Stolar cacfbe6a4f Override ContentHandler::validateSave instead of Content::prepareSave.
Prepare override for TemplateStylesContentHandler, remove usage in TemplateStylesContent.

Bug: T287159
Depends-On: I7f23e6e97b1c7d27a6aaefdb88b19b2fc6e8b3a8
Change-Id: I4d89a5871c8be9101b356dafe68fcbc0cf69f6ee
2021-11-04 13:51:27 +02:00
libraryupgrader 8b478fa5ae build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: If527ee960049e64145281c3cea4f645b4599e50e
2021-10-24 13:53:02 +00:00
jenkins-bot f6da33d28e Merge "Override ContentHandler::fillParserOutput instead of Content::getParserOutput and TextContent::getHtml()." 2021-10-19 14:15:23 +00:00
Alexander Vorwerk fe485d7c57 Override ContentHandler::fillParserOutput instead of Content::getParserOutput and TextContent::getHtml().
Prepare override for TemplateStylesContentHandler, remove usage in TemplateStylesContent.

Bug: T287158
Change-Id: Ia1c0a307337e43c26cc05a5a9b2883ad2349d07e
2021-10-19 17:09:58 +03:00
Translation updater bot 06a4ee9801 Localisation updates from https://translatewiki.net.
Change-Id: If0cb6a007ded63b1da148be1c5f965fc8ad7b859
2021-10-18 15:21:27 +02:00
libraryupgrader d338bcbb45 build: Updating ansi-regex to 5.0.1
* https://npmjs.com/advisories/1002401 (CVE-2021-3807)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: I2dde9ffb793fe946e6940827c1434e1b5f138bf8
2021-10-08 20:02:05 +00:00
Umherirrender 2c5b76c9f5 build: Suppress phan failure
After removable of DeprecationHelper from Parser.php with
I4ff100136a777974f7206f599422589d51f02b88 the __set function is gone,
which indicates phan that undeclared properties are possible

Depends-On: I56397a085226538a8156e0e7a195db463240624c
Change-Id: I1cef45d5b0caff53ee126a55825dc85d8a276b43
2021-10-03 21:13:22 +00:00
Translation updater bot 889361435f Localisation updates from https://translatewiki.net.
Change-Id: I2fc45ac84b88156566318ef6000ee1d37772772a
2021-09-23 12:28:02 +02:00
Translation updater bot f6be700a39 Localisation updates from https://translatewiki.net.
Change-Id: I50bb5b74d222df125d47ba6ad725acc4d0221905
2021-09-22 08:11:07 +02:00
libraryupgrader 1741e8097e build: Updating composer dependencies
* mediawiki/mediawiki-phan-config: 0.10.6 → 0.11.0
* php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1

Change-Id: I867ae7558e2063db7f5a8a9f0796513e5ce441a9
2021-09-09 07:50:00 +00:00
Porplemontage cf7225f127 Allow the default source namespace to be changed
This adds a config option so that the src attribute of the <templatestyles> tag can be set to default namespace other than Template.

Bug: T290250
Change-Id: Iec4f5d630d025e0bacba05d40cd74fc9312fcae2
2021-09-05 17:19:33 +00:00
libraryupgrader 042c5e6a73 build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: I916870dd9c037b1b270a2c71496cd2058b55e288
2021-08-12 11:54:59 +00:00