Commit graph

26 commits

Author SHA1 Message Date
Tim Starling 94cd0132b8 Stop using legacy ActorMigration field "rc_user"
Migration was complete in MW 1.34

Bug: T278917
Change-Id: Ibe5768ece9126207470c2094237112b1011c8e46
2021-04-20 12:12:19 +10:00
Umherirrender e79b52ee8a Move documentation from hooks.txt to hook interfaces
The new system allows to have documentation directly at the interfaces

Change-Id: I82f6f87d145cc43b2dd5b7d1fa256850b50ca63f
2021-03-31 22:07:40 +02:00
Reedy 52d27a2714 Namespace extension
Change-Id: If386a072e64f7c4903be911f5f70db3ee52338c2
2021-02-11 06:20:26 +00:00
DannyS712 8d1f938dda Remove checks for whether ActorMigration class exists
Exists since 1.31, extension requires 1.35+
If it is ever removed, using the current handling from before it was
added will break things

Change-Id: Iee13649a4e3fb59195a60d178473d6e970680a45
2020-11-23 23:58:51 +00:00
jenkins-bot a1c014e67e Merge "Replace call to deprecated User::isBlocked with User::getBlock" 2020-07-31 08:51:52 +00:00
DannyS712 37c4b77c63 Replace call to deprecated User::isBlocked with User::getBlock
Check if the block applies to the `delete` right. Currently,
AbstractBlock::appliesToRight has no logic for delete, and returns
null, but to be forward-compatible it should be checked instead of
just assuming that blocks prohibit deletion.

Change-Id: I35820f07b5765f0870ab7f3c838955e6167533cd
2020-07-08 07:05:49 +00:00
DannyS712 7bd74621a7 Update hook calling to use new HookContainer system
Bug: T254558
Change-Id: Ibadbdb6f15fc407ef7b9b77b13811b68031e1439
2020-06-10 07:40:19 +00:00
DannyS712 fb26f45c03 Replace WikiPage::doDeleteArticle with ::doDeleteArticleReal
Don't need to worry about old signature since Nuke requires MW 1.35+

Bug: T248000
Change-Id: I32fd5dfa4a9edded90f4e52fd3c2acaaaf78e169
2020-03-19 15:32:13 +00:00
Umherirrender 51bf625b31 Use MediaWikiServices::getRepoGroup
This required MediaWiki 1.34 (already set to 1.35 in extension.json)

Change-Id: Ifede8f406c8017883cbc96a86d347d5f5cfecc21
2020-03-14 14:43:23 +01:00
BAGArt 1160b7e3f4 Replace usage of deprecated Page in favor of WikiPage/Article
Using actual Article contract with getPage method

Bug: T239975
Change-Id: I22ab8ce8ff2e2bc202d0ade6dec35b153f7fab8d
2020-03-03 02:24:00 +03:00
jenkins-bot 05afe8cd33 Merge "Use the help page dedicated to usage" 2020-02-23 10:23:21 +00:00
DannyS712 13d7bad063 Pass a user to FileDeleteForm::doDelete
Bug: T245682
Change-Id: I62a4e23e67d8fdf438767a17bec8b7f0572d9ac1
2020-02-19 22:34:13 +00:00
Ammarpad 2ae6a87f6a Replace deprecated IP class with IPUtils
Raise required MW version to >= 1.35.0

Bug: T242556
Change-Id: I1a61cf5e1a66fcde3edd5b010eb8c34de4b47dc3
2020-02-18 21:12:21 +00:00
DannyS712 83ccb948b4 Remove use of Title::getUserPermissionsErrors
Bug: T244929
Change-Id: Ibeda8fdee104e8208c52c976550609f28fa991dc
2020-02-11 21:45:35 +00:00
libraryupgrader 2cd2837567 build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: Ib4c6d57da6841418ce13fa7b4a6dc1e708774bf2
2020-01-14 08:25:55 +00:00
Jayprakash12345 08e3e84d7d Remove setMethod( 'post' ) from HTMLForm Object
Bug: T215123
Change-Id: I0579f4ad9f3c083691d1f6495cbefe0de5a4a585
2020-01-02 01:18:58 +05:30
Seb35 d791381831 Use the help page dedicated to usage
Bug: T228071
Change-Id: I0dbf2e9f04120db35ab76c13c325aaf20b2bef59
2019-10-08 15:46:17 +02:00
DannyS712 9529ceea80 Add help links to special pages
Bug: T228071
Change-Id: Ibf252ff64db6414fe12ae18ad7d3eef3b2c087e6
2019-07-17 19:45:04 +00:00
Umherirrender 38ff8983c7 Remove compat code for version 1.27
This extension requires 1.28.1

Change-Id: I842e7915002a1b30216599915ffa268d3374b00c
2019-03-03 17:45:17 +00:00
Umherirrender 9baf35594c Use ::class for class name resolution
Available since php5.5

Change-Id: I8a69ef8cfe8a5cc9d5fb94c9f0f39032575a8e4d
2019-03-03 01:14:41 +00:00
jenkins-bot cf3f837b5e Merge "Add autofocus to Special:Nuke target field" 2018-05-19 12:02:15 +00:00
Florian Schmidt 229c4feea2 Add autofocus to Special:Nuke target field
This is most likely the field the user will enter when opening
Special:Nuke, pre-selecting it allows a user to directly paste
or write a target name there.

Change-Id: I2092bd7dd8b8d02e9210465b63ef6611134db04b
2018-03-30 22:54:01 +02:00
Brad Jorsch 0a5730a716 Update for the actor table change
Core change I8d825eb0 begins the process of changing core database
tables from using xx_user and xx_user_text fields to using xx_actor.
This updates the extension to continue to function during and after the
transition.

Bug: T167246
Change-Id: I8375aeb84d3308ee7a60cc6dd88511844bcaf20f
2018-03-12 15:17:31 -04:00
Kunal Mehta f9d7a47243 Add configuration for phan
Change-Id: I4103d96b0701ddc9ef7cafc57b1b5d375f3b835f
2018-02-16 15:48:38 +00:00
Matěj Suchánek 4f9f576d98 Don't show link to Nuke for IP ranges
Bug: T175915
Change-Id: Idc73e18e3665380147f85ad27b484fade5e877a2
2018-02-05 20:57:51 +01:00
Kunal Mehta 3189caee68 Move classes into includes/, and rename files to match class name
Change-Id: I00b50e20b34d5a3cc7803b1d950d9a2fdab87d7e
2018-02-04 14:29:42 -08:00