Commit graph

27 commits

Author SHA1 Message Date
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