Commit graph

1575 commits

Author SHA1 Message Date
jenkins-bot d0a58cfa50 Merge "Increase requires to "MediaWiki": ">= 1.37"" 2022-11-04 13:28:57 +00:00
Fomafix 698188afd4 Use WebRequest::getIntOrNull and avoid ctype_digit
This avoids the deprecation warning:
ctype_digit(): Argument of type null will be interpreted as string in the future

Bug: T322079
Change-Id: Id1e7ec7d73028339b53047ebfd6a975d23c3d180
2022-11-04 13:17:05 +00:00
Fomafix 42ef4ee402 Remove phpcs exclude rules and update PHP code
Change-Id: Ifecf2f8a053b9304a8e9e6558cd7c1f570f15084
2022-11-04 13:09:25 +00:00
Fomafix 49df51e106 Inject services
Change-Id: I7f11825af2bb96ad61aa2cefcc47fcad706388af
2022-11-04 11:21:00 +00:00
Fomafix 6f8f4d759f Increase requires to "MediaWiki": ">= 1.37"
The extension Nuke uses since 92c45955 already
MediaWikiServices::getJobQueueGroup which exists in MediaWiki core
since 1.37.

Change-Id: I500023023bd0ef38d3a75edb1872cc8d55da347c
2022-11-04 11:19:43 +00:00
Fomafix 35abb011cf Use short array destructuring instead of list()
Introduced in PHP 7.1. Because it's shorter and looks nice.

Change-Id: Ia857f37abdb17fe88e91ae17a5610c027c97376e
2022-11-04 10:47:02 +00:00
Translation updater bot c9c8af5690 Localisation updates from https://translatewiki.net.
Change-Id: I0f2795c4d4d0ea0063551fd6cb0794dd5fb5dbea
2022-10-27 08:55:38 +02:00
libraryupgrader d078bf9f54 build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: I83cdf6a71db7acc1763b281255e1e25eb37a7f70
2022-10-21 09:04:55 +00:00
libraryupgrader 81da7f0573 build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: I2cefa4f4a6de7e156209a875387179e89f5ac80d
2022-10-09 07:38:52 +00:00
libraryupgrader fed0070df5 build: Updating grunt-banana-checker to 0.10.0
Change-Id: Ia01085d0be0fc79faad43f4393224f0f85729834
2022-10-07 02:35:14 +00:00
Translation updater bot 172fdd535c Localisation updates from https://translatewiki.net.
Change-Id: I747d4c28bfad3687a63c1653b7baf03b177ed1b0
2022-10-05 08:24:58 +02:00
Translation updater bot 1ed9cbc87c Localisation updates from https://translatewiki.net.
Change-Id: If46f00e25090aaf47af1cdaa862c4bbb8a97024f
2022-09-28 08:22:15 +02:00
Translation updater bot 8d25294afc Localisation updates from https://translatewiki.net.
Change-Id: Id0f3c7b0b4e3c269924df7396bd3f9499b446e85
2022-09-22 08:46:41 +02:00
Translation updater bot 3d14c371a7 Localisation updates from https://translatewiki.net.
Change-Id: I0d6aca6879e88ca3383300104aeeeed902d278e3
2022-09-05 10:11:27 +02:00
jenkins-bot d7f428d5e1 Merge "Use WebRequest::getRawVal instead of WebRequest::getText" 2022-09-01 21:58:53 +00:00
Fomafix 7cd544c4ca Use \u{00A0} instead of  
Directly use the UTF-8 encoding of the 'NO-BREAK SPACE' (U+00A0)
instead of the HTML entity  .

Bug: T154300
Change-Id: I2f50fd24772eacd0bddf90c982fd7112196e6ad2
2022-08-30 13:24:53 +00:00
Fomafix cfc33f1a2a Use WebRequest::getRawVal instead of WebRequest::getText
The UTF-8 normalization for the URL attributes `action` and `namespace`
are not needed.

Also use === instead of ==.

Change-Id: I03a844d58b11f45dc67f3dfb861d8f6e9ffcc18d
2022-08-30 08:47:34 +00:00
Fomafix b124456dff Remove LEFT-TO-RIGHT MARK (U+200E) from comments
'LEFT-TO-RIGHT MARK' (U+200E) is not needed in the source code
comments.

c8caf26ffd9 removed already the LRM/RLM from Names.php in core.

Change-Id: I3fff78ace5abf1b6c691e34d3c67c55da5c83ae4
2022-08-27 17:08:18 +00:00
Translation updater bot c0423ba9f6 Localisation updates from https://translatewiki.net.
Change-Id: If70a911b9d3fb69216c99910b42087a40fab5362
2022-08-15 08:26:50 +02:00
Translation updater bot bc4fb77914 Localisation updates from https://translatewiki.net.
Change-Id: Ief8a4f8e4e393ce4491eeaa87465ab4de32c984c
2022-08-08 08:59:07 +02:00
Translation updater bot 20434a0b4e Localisation updates from https://translatewiki.net.
Change-Id: I631a1007a30493ae3f84d474b12a06530a853669
2022-08-05 08:34:13 +02:00
Fomafix 2b320e7ec6 Use explicit mw.msg() instead of implicit mw.message()
The mw.Message object from mw.message() gets implicit converted to a
string.

Change-Id: Id95446bdd2a47bf0262220b3b962e4f747d7c31c
2022-07-24 18:44:16 +00:00
Reedy cbbf2cc376 SpecialNuke: Null coalescence in execute()
Bug: T313146
Change-Id: I40850e2f126728ab09ab89fc666241a7f041c7ee
2022-07-17 20:43:16 +01:00
Translation updater bot 79747c18e7 Localisation updates from https://translatewiki.net.
Change-Id: Ibe43939908d9bc1c113560310f29c48470eda029
2022-06-29 08:35:28 +02:00
TerraCodes 029111351c Add class to nuke contribs link
Continuation of MW core patch 603941

Change-Id: I3ae1aeddbd0c00ffecf7b8b8115cf161b0e15202
2022-06-17 18:53:57 +00:00
Translation updater bot 5cb6cece54 Localisation updates from https://translatewiki.net.
Change-Id: I664408e52814ed02038cda98850f1de89eb5427b
2022-06-06 09:26:18 +02:00
Translation updater bot 6652b35ba9 Localisation updates from https://translatewiki.net.
Change-Id: Icc37f6195c45f365099100707b4bd71c63268663
2022-05-30 09:23:51 +02:00
libraryupgrader 71e8f1eeef build: Updating grunt to 1.5.3
Change-Id: I44cb7e625a828aa3f67b2de2b1117e891c137130
2022-05-26 17:34:21 +00:00
Translation updater bot 970832c214 Localisation updates from https://translatewiki.net.
Change-Id: I3722cfd13e332f19ec78a586fb2fa4d6b7d058a0
2022-05-23 08:17:16 +02:00
libraryupgrader 894a1af3c5 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: Ib4874553b9119a0e8fcdc99231fbd9854c52fe2d
2022-05-21 08:29:16 +00:00
Translation updater bot efce4d2da8 Localisation updates from https://translatewiki.net.
Change-Id: I40e410221ca5493fc20585bed558df450a17a1f1
2022-05-17 08:28:34 +02:00
Translation updater bot 9eb2f95f89 Localisation updates from https://translatewiki.net.
Change-Id: Idbb6c16ca5086d508912e8f706df7ea99fc105fa
2022-04-28 09:28:47 +02:00
Translation updater bot df70fcfeae Localisation updates from https://translatewiki.net.
Change-Id: I9bb077b615820069a2ecbce7bd13a4a8c34392f7
2022-04-25 08:18:33 +02:00
Translation updater bot 27c9dcdd9e Localisation updates from https://translatewiki.net.
Change-Id: I2e47b08dc625a777c731fe78a8e9fad0843afd6c
2022-04-13 08:32:35 +02:00
Translation updater bot ae1e22a4d9 Localisation updates from https://translatewiki.net.
Change-Id: I6562fa284b943345a1bdf5bb1b2ef01a7efc3876
2022-04-06 08:27:02 +02:00
Translation updater bot a98699f2bb Localisation updates from https://translatewiki.net.
Change-Id: I0e0ff8161f2af547c9610fc810811138b0fa953e
2022-04-05 08:25:51 +02:00
jenkins-bot 0054f53e91 Merge "SpecialNuke: use Message::plaintextParams() for page titles" 2022-04-01 22:25:51 +00:00
Translation updater bot cb1a1c20fb Localisation updates from https://translatewiki.net.
Change-Id: Iad8096217327197547d7947e3d9646dcf005dadd
2022-03-30 08:18:26 +02:00
DannyS712 6620e7e686 SpecialNuke: use Message::plaintextParams() for page titles
So that their contents do not get parsed

Bug: T304777
Change-Id: I6f031d1b857ee0955b8966f5f63c63e269306568
2022-03-27 00:34:46 +00:00
Func bfe4c13c0b SpecialNuke: Don't set edit token in HTMLForm twice
HTMLForm would set it for post form, use setTokenSalt() to amend.

Change-Id: Ia79dbd261e9f0a34bf9f10660a1043355ab72ede
2022-03-18 12:03:12 +00:00
Alexander Vorwerk 0d1481dc5a Bump required MW version to 1.35.6
Title::getId() is @since 1.35.6.

Bug: T303871
Follow-Up: I61f47961e1d4739a290ed53704e87887e3f59f23
Change-Id: I8902988bb13b617db0b6e0c2c4d9c5771a40d214
2022-03-17 21:33:18 +00:00
DannyS712 022da28e19 Unsuppress MissingDocumentationProtected and add docs
Change-Id: I169df0d822232c74ad5069141e032dbb10af6ac1
2022-03-12 01:45:39 +00:00
Translation updater bot 6ef05943a1 Localisation updates from https://translatewiki.net.
Change-Id: If04b717e543a0ab6eff96dae7d7ef0a5d888b052
2022-02-28 14:29:07 +01:00
Translation updater bot 671788dddb Localisation updates from https://translatewiki.net.
Change-Id: I57d5cec01ec2ffee8b9fb7c14d9a9c6eb05e0b3e
2022-02-25 09:44:49 +01:00
Translation updater bot 902db4949b Localisation updates from https://translatewiki.net.
Change-Id: I8fbf5c821276fec4fc92cc712e693c2044dd7000
2022-02-16 08:13:20 +01:00
Taavi Väänänen 42d4bdb9ef SpecialNuke: Add dropdown with predefined deletion reasons
This commit adds logic very similar to what DeleteAction does: there's a
dropdown with predefined reasons (from MediaWiki:Deletereason-dropdown)
and a text field where you can enter a custom reason that will be
appended to the one you chose to on the dropdown.

Bug: T25020
Change-Id: I9668244d165caae2d71467573f1204689f2600a8
2022-02-14 05:35:33 +00:00
Translation updater bot 66cede3b64 Localisation updates from https://translatewiki.net.
Change-Id: Ia954c76dbcdfbfd8ab9942aa0e5661432688b48e
2022-02-01 08:27:18 +01:00
Translation updater bot 369435ddf6 Localisation updates from https://translatewiki.net.
Change-Id: I8d6967498d3b7c54e85de9f86b9bbf18f6522fad
2022-01-25 08:33:02 +01:00
Translation updater bot 13a913a377 Localisation updates from https://translatewiki.net.
Change-Id: If068269443cbbdeaf1d9b4c5e55a728ccbaad1ac
2021-12-27 09:30:37 +01:00
Translation updater bot b2f6280c30 Localisation updates from https://translatewiki.net.
Change-Id: I8ceaae0f14e5a6f60034978df4bbf9765a17b261
2021-12-15 08:09:31 +01:00