Commit graph

7501 commits

Author SHA1 Message Date
jenkins-bot 22435fe600 Merge "Replace BadMethodCallException with LogicException" 2023-11-19 13:03:56 +00:00
jenkins-bot 5af833f0a8 Merge "Improve PHPDocs in SpecialAbuseFilter" 2023-11-19 13:03:54 +00:00
Translation updater bot f1c4e61677 Localisation updates from https://translatewiki.net.
Change-Id: Id0514675fcf7a4fd209038298bb16dfe1565a62c
2023-11-17 08:51:15 +01:00
jenkins-bot 8bde48f00e Merge "Move var declarations inline" 2023-11-16 21:03:24 +00:00
jenkins-bot 3906112737 Merge "Document more generated messages" 2023-11-16 21:02:16 +00:00
jenkins-bot 38e6e7064e Merge "build: Update linters" 2023-11-16 21:02:13 +00:00
thiemowmde 2def63118e Replace BadMethodCallException with LogicException
The BadMethodCallException is documented as "thrown if a callback
refers to an undefined method or if some arguments are missing".
This is not what happens in these places.

Change-Id: Ic95b67acc2e17eea1dd0fa1d72f9ac94a86bcf17
2023-11-16 19:10:50 +00:00
thiemowmde 71170d6db1 Fix typo "Builer" → "Builder"
This luckily doesn't appear anywhere else:
https://codesearch.wmcloud.org/search/?q=EditBoxBuiler

Change-Id: I8238015b10cc729a2df7b56be7e3eb5140f8a070
2023-11-16 20:00:41 +01:00
thiemowmde 5f0f61de5d Improve PHPDocs in SpecialAbuseFilter
Change-Id: I5364650dc31b69ab406fe1c12b6fb2ca66f02da1
2023-11-16 19:55:40 +01:00
Translation updater bot 7ec0212baf Localisation updates from https://translatewiki.net.
Change-Id: Ic41da1c9e7c90c765259c3c8eba79163b0ae2a65
2023-11-16 09:08:02 +01:00
Translation updater bot ac03f57a7e Localisation updates from https://translatewiki.net.
Change-Id: Id08825015d38bf675cffd9c4092270269297c2a3
2023-11-15 15:42:57 +01:00
Translation updater bot 1ce02e0fd7 Localisation updates from https://translatewiki.net.
Change-Id: I125f221482afe77e831688db66819463d71d6cd2
2023-11-13 08:39:24 +01:00
Ed Sanders e405992015 Move var declarations inline
Change-Id: Ie8046d24268be2d22ab115a466422e7e3dd9a8e2
2023-11-10 18:27:55 +00:00
Translation updater bot bfcf3a9432 Localisation updates from https://translatewiki.net.
Change-Id: I44c27352c8fbc467633d64c14bc3ecddbc113502
2023-11-09 10:39:51 +01:00
Ed Sanders 34bb759cd8 Document more generated messages
Change-Id: I255235b03a060199e9577aa669227742efa7ff07
2023-11-08 16:34:08 +00:00
Ed Sanders 3d23de9893 build: Update linters
Change-Id: Ieb7a2999a7f75697cc866ff29ec9707bdc9618db
2023-11-08 14:05:03 +00:00
Translation updater bot 0430a5b97e Localisation updates from https://translatewiki.net.
Change-Id: Ie8379aa6f17fbe70b7e13be0169b2d68284db2a3
2023-11-08 13:07:01 +01:00
Translation updater bot 3958956bcc Localisation updates from https://translatewiki.net.
Change-Id: Ic3f8c108fe1dce0d6bb9e8bd06ea69d4052453b0
2023-11-07 09:07:03 +01:00
Translation updater bot 130cb3dc74 Localisation updates from https://translatewiki.net.
Change-Id: I952ded8a6335275b330308594256685834efa845
2023-11-06 08:54:53 +01:00
Translation updater bot 56bef976cf Localisation updates from https://translatewiki.net.
Change-Id: I41ae6e1fe50e5adeae0d23bbe2b3577cad5db3b6
2023-11-03 08:58:02 +01:00
Translation updater bot b4118ba4cb Localisation updates from https://translatewiki.net.
Change-Id: I93767cc55021e015d117f35c86adf797bc5e9b8f
2023-11-02 09:57:32 +01:00
Translation updater bot 7a066dfe9a Localisation updates from https://translatewiki.net.
Change-Id: If9757c40184154600f5085d4c39469a37eb10971
2023-11-01 09:07:09 +01:00
MusikAnimal 7db0e05aeb Show notification when editor links to a blocked domain
This leverages the new BlockedExternalDomains system that is now part of
AbuseFilter. It notifies editors in realtime if a link they add is
blocked. See https://w.wiki/7ZsF for more information.

BlockedExternalDomains is slated to have its own API tantamount to the
action=spamblacklist endpoint, after which case this code will need to be
updated. In the meantime, it's meant to serve as a minimal viable product
for the CWS 2023 wish <https://w.wiki/7ZsE> for wikitext users.

The new $wgAbuseFilterBlockedExternalDomainsNotification configuration
setting controls the availability of this feature.

A similar feature for VisaulEditor is tracked at T276857

Bug: T347435
Change-Id: I7eae55f12da9ee58be5786bfc153e549b09598e7
2023-10-31 15:32:02 +00:00
Translation updater bot 968359fe75 Localisation updates from https://translatewiki.net.
Change-Id: Ib5da08461645581e6c14750820affbafb5e02b80
2023-10-30 17:58:29 +01:00
Translation updater bot 8af420bd6a Localisation updates from https://translatewiki.net.
Change-Id: I5a15e217f69fcdf3a104b7ad56b2559ec739aef0
2023-10-27 09:18:49 +02:00
Translation updater bot 5813b6deb5 Localisation updates from https://translatewiki.net.
Change-Id: I07432cfcd566b73784698bcd68667d85fa15ebb2
2023-10-26 11:02:21 +02:00
Translation updater bot 86dec8b0be Localisation updates from https://translatewiki.net.
Change-Id: I5310a6e3ef8b59fa9ce06d8dca9ce14ab9c3bcf2
2023-10-24 09:36:06 +02:00
Translation updater bot bbe861a765 Localisation updates from https://translatewiki.net.
Change-Id: I8ffe3d3d188895cd997cd626788047af725e8a28
2023-10-23 09:49:54 +02:00
Umherirrender 97a8f0ae6c Replace empty() with a null compare
empty() should only be used to suppress errors
Found by a new phan plugin (T234237)

Change-Id: I5428b4bfe17b5d3a3aca6f07795a1b84af2eaf37
2023-10-21 20:27:31 +02:00
jenkins-bot 04b3165ed0 Merge "phpunit: Avoid hardcoding exact mw-parser-output class attribute" 2023-10-20 16:03:00 +00:00
Translation updater bot c4389870e0 Localisation updates from https://translatewiki.net.
Change-Id: I79d5e93ea491eb783c13f61f4e63841812bdfd6e
2023-10-20 09:18:50 +02:00
Timo Tijhof 09438fd015 phpunit: Avoid hardcoding exact mw-parser-output class attribute
Needed by Ib130a055e46764544af0f1a46d2bc2b3a7ee85b7.

Bug: T341244
Change-Id: Icd9c079f5896ee83d86b9c2699636dc81d25a14c
2023-10-19 19:02:21 -07:00
Translation updater bot 5144912045 Localisation updates from https://translatewiki.net.
Change-Id: Ia42d4c867679a27f705148027d28b78bec555a06
2023-10-19 08:39:54 +02:00
Translation updater bot 20f8436260 Localisation updates from https://translatewiki.net.
Change-Id: Ide616426913cf22035152f0f0a02486db6353045
2023-10-17 09:33:30 +02:00
Translation updater bot b43bff2653 Localisation updates from https://translatewiki.net.
Change-Id: Ie5f5a066556e0edfdbea607de78c53aea1edd3c5
2023-10-16 09:14:57 +02:00
Umherirrender a7f0b7971a Use the expression assignment operator to simplify code
Suggested by phan, available since php7.4

Change-Id: Ibcc1742bd16a16e6518b4851046ad62d85de559e
2023-10-14 00:42:34 +02:00
Translation updater bot a8ef0d166a Localisation updates from https://translatewiki.net.
Change-Id: I647a0086c89ad5ffe5730993f528cfd503e5e1ca
2023-10-12 09:28:40 +02:00
Translation updater bot e6beacd73c Localisation updates from https://translatewiki.net.
Change-Id: Ia39e3062b841efc35ce4f8d5fd0d46c3efc1a775
2023-10-11 08:44:34 +02:00
Translation updater bot 2c1217ec40 Localisation updates from https://translatewiki.net.
Change-Id: Ic3c2478ae2f531a6c2f51629355b6fbc3c6d73dd
2023-10-09 08:54:59 +02:00
Translation updater bot c03d05dc88 Localisation updates from https://translatewiki.net.
Change-Id: I14aaf1bbde61af29d8e305fbd1358ac4cd709069
2023-10-06 09:17:51 +02:00
Bartosz Dziewoński 0f63d6011c Parse wikitext in page titles with filter number as parameter
Follow-up to 0ff282dcc3.

Bug: T343994
Change-Id: I14cc0cebcf10fb552475ef6ffbab9dcfa55221cd
2023-10-05 20:54:58 +00:00
Bartosz Dziewoński 1e54192b1b Fix non-escaped messages used in page subtitles
Reported by Phan, and also discoverable with ?uselang=x-xss.

Change-Id: Ieb41d11acf543784f1cfbca5ea2272ac0bffc9a9
2023-10-05 22:51:21 +02:00
Translation updater bot f1827c26b2 Localisation updates from https://translatewiki.net.
Change-Id: Ic07e31b54cdb0d1454c78e1653ef3b114e7f97a2
2023-10-05 09:11:07 +02:00
Translation updater bot a1578ecafe Localisation updates from https://translatewiki.net.
Change-Id: I9f48eb30b86eb2e3cc7bf52c9bcf9f74e87a5ac4
2023-10-04 09:06:56 +02:00
Translation updater bot d8af3e5d9c Localisation updates from https://translatewiki.net.
Change-Id: I90a08170b99907de59ab9ac938bdf3c10d20cb18
2023-10-03 09:31:51 +02:00
Translation updater bot 359801cf14 Localisation updates from https://translatewiki.net.
Change-Id: Ia9d24a6df83141a862da7457eab60f85147962b7
2023-10-02 10:55:07 +02:00
Amir E. Aharoni 77cea2bf02 Remove "Back to" from two messages
These two messages appear at the top of pages such as
https://en.wikipedia.org/wiki/Special:AbuseFilter/history/50/diff/prev/27425

The words "Back to" are not really necessary there. It's clear enough
to simply write "Filter editor" and "Filter history", without showing
"Back to" next to each other.

Change-Id: I44672ffd49ba6c24dbf49f9c7de3bbd72f154dbf
2023-10-01 07:38:07 -04:00
thiemowmde 8565b8d7c4 Use assertStatusGood and such from MediaWiki core
Turns out the MediaWikiIntegrationTestCase base class comes with a
bunch of convenience methods for this. We can even remove the custom
messages because these methods already print a lot of debug info in
case of a failure.

Change-Id: I61fd86f1560c8e3bcf39a30b09fecdb063424613
2023-09-28 12:24:52 +00:00
Translation updater bot b7112c6152 Localisation updates from https://translatewiki.net.
Change-Id: Ibea422a44c2438eb8a811afd37b06c165a56523d
2023-09-27 09:18:53 +02:00
Translation updater bot 2f99eb38ed Localisation updates from https://translatewiki.net.
Change-Id: If170b6437db1e387e4d625ee4abc45ae72ff8fb8
2023-09-26 08:42:38 +02:00