Commit graph

27 commits

Author SHA1 Message Date
Wandji69 11ba95998f Use ObjectCacheFactory instead of deprecated ObjectCache method
Bug: T363770
Change-Id: I2f59251914902dccef1bf7aac2d0c1008ebd21e2
2024-05-22 12:14:28 +00:00
Umherirrender dfef274db6 Use namespaced classes
Done automatically via script

Change-Id: If7d9fb3dda6b4c71ac6cf4963da86d49021544a5
2024-01-04 22:31:38 +01:00
gerritbot d4395ce88d Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I87b70d83127a4068bc5b9f9a8ba347283977423e
2023-08-19 14:15:44 +00:00
Daimona Eaytoy 6b45e11915 Replace deprecated MWException
Bug: T328220
Change-Id: Ie3533ce07a1e372dd5ec05f4437bfc9e35149b96
2023-06-07 17:12:37 +02:00
Thiemo Kreuz 4d2df71552 Various code style cleanups
E.g. reducing deep indention and code duplication. Removing comments
that literally repeat what the code says.

The goal is to make the code easier to read and to maintain in the
future. I hope this is the case.

Change-Id: I6f23bc61ffb8b6d42ec697fec91bb6c92152561f
2022-12-07 14:37:10 +01:00
Reedy f95b5ce792 Drop class aliases
Change-Id: I9698f39ec3e301266390032a53cb9249372f216a
2022-10-31 23:02:13 +00:00
Alexander Vorwerk a1c08ed427 Add class alias for TitleBlacklist and bump cache version
Bug: T307513
Change-Id: Ibcbec44fe0f1168594036cbc2e0b5199f9b88bff
2022-05-03 23:40:35 +02:00
Reedy 70754ecf37 Fix and enable 1 PHPCS exclusion
Change-Id: I15c2af8205f58f774b77bff52cad38e0cf541014
2022-04-08 13:42:43 +00:00
Reedy 3113e6bf5f Namespace extension
Change-Id: I7917483168a3534d74b62dd2077026c0baa4cbe0
2022-04-08 14:24:11 +01:00
Reedy b9b82c550f Replace usages of Wikimedia\(suppress|restore)Warnings()
Change-Id: I601cf8d513bd1bbd305c6ad2250ba18b376fe819
2022-02-24 21:14:12 +00:00
jenkins-bot 9b150fc464 Merge "Avoid using WikiPage::factory()" 2021-12-18 15:52:32 +00:00
Alexander Vorwerk 49eaa3a463 Avoid using WikiPage::factory()
WikiPage::factory() is deprecated since 1.36 and should be replaced
with WikiPageFactory::newFromTitle().

Bug: T297688
Change-Id: Ic3f8745de45916baca68ab3620ca88148fbbc4ba
2021-12-14 12:32:13 +01:00
Siddharth VP ce64fbb8df Fix typos in comments
Bug: T201491
Change-Id: I5177bc2003f411f08638f066e0bd9e60b45e159c
2021-10-14 11:20:01 +05:30
Alexander Vorwerk d54338f52b Avoid using ContentHandler::getContentText()
ContentHandler::getContentText() is deprecated and should be
replaced with Content::getText() for TextContent instances.

Change-Id: If38508a069c668e43686226262acbb8ecce92764
2021-05-18 09:02:41 +00:00
libraryupgrader 6218ba8396 build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Change-Id: I19c53a7b3d3ea12bb098f754dc68ce23cc5c8529
2020-12-29 21:20:23 +00:00
Umherirrender c90c0e5d09 Pass function name to HttpRequestFactory::get
Useful for logging
Replace deprecated Http::get with service (since 1.34)
Have to check for falsy to avoid returning non-string

Change-Id: I6d06698cf1e34d0cb9ab7d808145b80b556cd243
2020-06-07 13:31:37 +02:00
Reedy 300118615f Fix PSR12.Properties.ConstantVisibility.NotFound
Bug: T253169
Change-Id: I7f3189a5e5546edd7969935d2f7d12ebbaeaad6f
2020-05-20 01:03:00 +01:00
Timo Tijhof 9bf6f9480c Remove use of internal $messageMemc variable
The $messageMemc legacy global, is a BagOStuff intended for
MessageCache service, configured by wgMessageCacheType.

Use that directly as a short-term measure so that we can remove
$messageMemc initialization from Setup.php.

Bug: T189966
Bug: T243175
Change-Id: I04a0e578d76269fa02ee85cffee070dc3e1f4512
2020-03-18 17:14:49 +00:00
libraryupgrader 09d70a1f18 build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingReturn

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: I668c40626bbb60ff8c1ddc130ffdf95c6eefbd2e
2020-01-15 09:20:50 +00:00
Umherirrender 41c93cd4b6 Improve param docs
Change-Id: Id143b26039da91584f473063e7280e41ca241731
2019-12-12 20:15:59 +01:00
Derick Alangi 41e6b19e57 Avoid usage of deprecated ObjectCache::getMainWANInstance()
Replacement with services made available in 1.28 and this extension
requires 1.31. So, the replacement is good.

Change-Id: Ia1452ace85d13eb07f7d55b338e120f24d339069
2019-07-03 13:58:55 +01:00
Thiemo Kreuz 8b2dd9cae3 Update unspecific "array" type documentation
Change-Id: Ic1120e726be71f09fa6ebd166d4992ee2c3a3a6b
2019-06-05 18:31:39 +02:00
Aaron Schulz be17ba5286 Fix various phpstorm warnings
Change-Id: Iebaef93dc4d5061ca34934bf18127d8826621fc9
2019-05-09 18:50:35 +00:00
Reedy 52358f2362 Update MediaWiki namespaced AtEase global functions
Change-Id: I90fbb959b5011a4fa06a766b2dbe91554bcf3c71
2019-02-13 02:31:11 +00:00
Jack Phoenix c5495e6b4a Use $cache->makeKey() instead of wfMemcKey()
Change-Id: I9f13a36d232730d49c2d9d87f7f4ba9e7d09e855
2018-07-31 07:40:44 +00:00
Kunal Mehta 5b0f26aae0 Use SPDX identifiers for @license tags
Change-Id: If60678dd5f9fa90b77d71b3e3a70f4329ede873b
2018-04-06 18:23:42 -07:00
Kunal Mehta 843434f64d Move classes into includes/
Change-Id: I24d0b37d49337efd35d12adf6adbfc403e81fa50
2018-02-15 14:35:32 -08:00
Renamed from TitleBlacklist.list.php (Browse further)