Commit graph

9 commits

Author SHA1 Message Date
Bartosz Dziewoński 84433157aa Migrate usage of Database::select to SelectQueryBuilder
We can simplify the code in Hooks.php to use revision.rev_actor
unconditionally, reverting 391c30da67
(the migration is done: T275246).

Bug: T312472
Change-Id: Iaab268409ec4ad0a8d3a835057321aa3c01a2cc7
2022-08-12 22:35:30 +00:00
Thiemo Kreuz a8f835c30a Raise PHP coding standards in this codebase a bit
Re-enabling some specific rules that are disabled in the upstream
MediaWiki coding standard for several reasons.

Change-Id: I6922995098f9af21e62e1b40d20fabd4b5d74ef7
2021-11-08 13:34:29 +01:00
ZabeMath 3bd0f02ac2 Avoid using User::setOption()
User::setOption() is deprecated and should be replaced with UserOptionsManager::setOption()

Bug: T277818
Change-Id: I7395a8620064dcbe019b92feba17d9c9996ffbb7
2021-03-30 21:47:04 +00:00
Reedy e264dc238b Replace usage of wfWaitForSlaves()
Bug: T181673
Change-Id: I661f1dcb85c360f7febd96d4d2fca825ba23b1e0
2020-06-06 17:40:04 +01:00
James D. Forrester 2c77e88d2c doc: Bump copyright year for 2020
Change-Id: I30539877543dc2a57bd1428a00d10ac46d8fc294
2020-01-08 09:13:24 -08:00
Max Semenik 718e7107b8 Don't use Maintenance::$mDescription directly
Change-Id: I8ec00d0e7b0105dd9d30602007bcc7aecc8ca089
2019-06-14 17:52:36 -07:00
Umherirrender a07ad01594 Use ::class for class name resolution
Available since php5.5

Change-Id: I9392155193275d20a82bde8eb7964d466e190f6b
2019-03-02 23:46:12 +01:00
James D. Forrester 3c293ea00c doc: Bump copyright year for 2019
Change-Id: I8991b97c980d4149f53eb5601036220ef3c0c440
2019-01-01 13:24:23 +00:00
James D. Forrester 31f667ccf7 doc: Document all public and protected PHP functions
Also move the maintenane script to a name that makes
MediaWiki.Files.ClassMatchesFilename.NotMatch not error,
and use the more restrictive licence tag usage for
MediaWiki.Commenting.LicenseComment.InvalidLicenseTag.

Change-Id: Ifa5518cd590ae83c6fd76f1dbb5a2ce40de4b119
2018-03-28 12:50:44 -07:00
Renamed from maintenance/autodisablePref.php (Browse further)