Commit graph

40 commits

Author SHA1 Message Date
Reedy 3113e6bf5f Namespace extension
Change-Id: I7917483168a3534d74b62dd2077026c0baa4cbe0
2022-04-08 14:24:11 +01:00
gerritbot 7bceb39e18 Fix usage of ApiBase::PARAM_* deprecated constants
The ones that are replaced with ParamValidator

Bug: T275455
Change-Id: Ifdc8bafbab1b1fc04d1cf3e0045d95fef1fe0216
2022-04-04 00:39:22 +00:00
Samwalton9 44ad553f62 Fix use of errorbox
Replace use of errorbox class with Html::errorBox.

Bug: T304269
Change-Id: I78a7f31c23b9faf2820ffbf215866b385db1b1a2
2022-03-25 14:12:16 +00:00
Reedy b9b82c550f Replace usages of Wikimedia\(suppress|restore)Warnings()
Change-Id: I601cf8d513bd1bbd305c6ad2250ba18b376fe819
2022-02-24 21:14:12 +00:00
Reedy efca55077c Use namespaced AntiSpoof class
Change-Id: Idcda3765210f4b1f247fcb2c1572a465546cfe4e
2022-02-11 14:18:16 +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
jenkins-bot 2d3067e347 Merge "Avoid using ContentHandler::getContentText()" 2021-10-12 18:18:56 +00:00
libraryupgrader a1bdadb769 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: Ib5cf97f989880bd68e9477b5926dd52c9d67178a
2021-09-09 11:47:01 +00:00
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 9d8d5c93c1 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

npm:
* grunt: 1.3.0 → 1.4.0
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)

Change-Id: I513a37524fba7387d143b9bb560b569ef7d600ad
2021-05-14 06:39:49 +00:00
Umherirrender fedb84b9c5 Use HookHandlers for core hooks
Bug: T271033
Change-Id: I42f323261b9acb24b0cf8cb9202ef5c804cc1a6d
2021-04-15 19:30:17 +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 0f3699c40f Avoid wfMessage in special page
Use self::msg instead to avoid global state

Change-Id: I5677e9ceb6b11c69d50a74b0bd1330896ddfef55
2020-12-19 12:21:36 +01:00
DannyS712 e5a7ed6997 Update hooks to use PageSaveComplete
Extension requires MW 1.35+, always available

Bug: T250566
Change-Id: I35a288d38e944df4498d63f1d686ee7904909c74
2020-06-23 19:26:40 +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
Lucas Werkmeister e35e542c08 Update cache key for Unicode normalization
Change I5d79426a32 (commit f03d6c617b) changed what kinds of values we
store in the cache – Status objects, rather than plain arrays. This
means we need to use a different cache key as well, or they’ll get all
mixed up.

Note that this will effectively replace the current “warm” cache with a
“cold” one on deployment.

Bug: T246643
Change-Id: I0dc5b796af4ab574cd31c8e01d24ddae3edc8a4c
2020-03-02 13:20:54 +01:00
Umherirrender 66f6418eaf Improve param docs
Change-Id: I6f6d781d1b9399520192df156664d39a88752860
2020-02-29 22:10:59 +01:00
Umherirrender f03d6c617b Use AntiSpoof::checkUnicodeStringStatus
Migrate from AntiSpoof::checkUnicodeString to the new function with
status object - was added in 1.32

Use ExtensionRegistry to check for extension
Add error message from the Status to the log

Change-Id: I5d79426a328c6ddc02789d795bc84599e8e5c06d
2020-02-29 10:59:56 +01: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
libraryupgrader fcd8ab2cb8 build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Idc3c7294c8e7636f2f44beb7389566a7389d23de
2019-12-27 18:55:00 +00:00
Umherirrender 41c93cd4b6 Improve param docs
Change-Id: Id143b26039da91584f473063e7280e41ca241731
2019-12-12 20:15:59 +01:00
Max Semenik 6948b3c5cf Stop passing objects by reference
Bug: T193950
Change-Id: I17f9793ee27f9b8fa6fdd5f70b061d295aef08bd
2019-11-15 15:53:13 -08:00
James D. Forrester 762ef4c02b Drop use of wgParser, replaced in 1.32 and to be removed in 1.35
Bug: T160811
Change-Id: Iefb5557f6dd1c300515dc532485e906d57e2d37f
2019-10-28 20:03:37 +00: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
jenkins-bot f233dd5264 Merge "Update unspecific "array" type documentation" 2019-06-06 01:17:45 +00:00
Derick Alangi 088bfe3028 TitleBlacklistHooks: Fix TitleBlacklist hooks to conform with MW
Also, cleanup various legacy behavior of hooks: as they return true. In
addition, objects are passed by reference by default.

I see more room for improvements, but will keep doing them in later change
sets.

Change-Id: I1ff3ec493a1d161cfbcfacf49b1af486a93b1052
2019-06-05 18:21:55 +00: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
libraryupgrader 84f30fd4c5 build: Updating mediawiki/mediawiki-phan-config to 0.5.0
Change-Id: Ie4cc688e4fecbdf53f77c4726292a8d3fcd6a06d
2019-03-10 22:34:49 -07:00
setian 8a25c63a25 Use plaintextParams directly instead of using rawParams()
Bug: T216360
Change-Id: I07f5f441a24da54a79d250652606d0a76e4ae774
2019-02-22 04:08:21 -05:00
Reedy 52358f2362 Update MediaWiki namespaced AtEase global functions
Change-Id: I90fbb959b5011a4fa06a766b2dbe91554bcf3c71
2019-02-13 02:31:11 +00:00
Zoranzoki21 9c963456fb Fix common typos in code
Bug: T201491
Change-Id: I621fdf81323639e2625a0cbc79ed27cc99bf5c05
2018-08-25 12:55:15 +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
Jayprakash12345 a4d5a715a3 Remove deprecated dieUsageMsg methods
Bug: T189222
Change-Id: Ie026662aed64fab6d6e47d9eaff5c80dd36e0a79
2018-03-09 12:10:06 +00:00
Kunal Mehta 843434f64d Move classes into includes/
Change-Id: I24d0b37d49337efd35d12adf6adbfc403e81fa50
2018-02-15 14:35:32 -08:00