Commit graph

13 commits

Author SHA1 Message Date
Umherirrender ce2920a0d5 Replace deprecated wfGetDB
Emits deprecation warnings since 1.42 (30795cda4f59)
Not replacing with IConnectionProvider for compatibility (needs 1.40)

Change-Id: I253e0c373a2e0d45bbd25b1b6b816ac9d63c9077
2024-09-21 20:20:01 +02:00
Jack Phoenix de1fa0ef27 Revert "LoadExtensionSchemaUpdates: Remove unused path from 'runMaintenance' action"
This reverts commit bab4d43206.

Reason for revert: breaks stated, advertised LTS compatibility that end-users expect (see https://www.mediawiki.org/wiki/Social_tools/MediaWiki_compatibility) (well, technically AJAXPoll isn't really a social tool per se, but some listings include it anyway, so...)

Change-Id: Ib0c4bde7040cdbb893acb200aa053fb1280078ff
2024-07-10 07:40:34 +00:00
Bartosz Dziewoński bab4d43206 LoadExtensionSchemaUpdates: Remove unused path from 'runMaintenance' action
MediaWiki has never used this path for running the maintenance
scripts, only the class name provided in the other parameter.
Providing the parameter is no longer needed in MediaWiki 1.43.

Also, remove outdated pitfall warning, it was fixed by marking
the method as protected in MediaWiki 1.35 (Ie73e6143bb).

Bug: T367918
Change-Id: I1818cf882e820bca9d7ec22b9bd30a86b81970f5
2024-06-19 19:58:22 +02:00
TehKittyCat eb4c4f8cc7 Avoid writing to DB if poll-show-results-before-voting has not changed.
Change-Id: Iaec0cc9f3e9af5b35699618f57843722472436af
2023-04-22 22:37:48 -04:00
Kunal Mehta b6cddae91d Don't set a default value for $args
It'll always be passed by the Parser when invoking the hook.

Change-Id: I16efdfc733e89be2b810ee7b143a1ca54ad1ff26
2022-10-08 20:44:18 -04:00
Alexander Vorwerk 5f740abae5 Access row object correctly
Follow-Up: I27803218e440f541bfd1352d72ce0ad3cadf96d7

Bug: T302223
Change-Id: Ie2053ac7078cb7453cc4c624b7161b24353f21a0
2022-02-21 14:23:13 +00:00
Umherirrender 2b477a92e0 Use array style on adding modules to ParserOutput
String is deprecated

Bug: T296123
Change-Id: I6eb23d299ea922935b514e545af971ee06bb48da
2022-02-12 02:10:21 +01:00
Umherirrender d5eacbcba6 Replace deprecated IDatabase::fetchRow
Bug: T286694
Change-Id: I27803218e440f541bfd1352d72ce0ad3cadf96d7
2022-02-05 20:56:47 +01:00
Umherirrender 4deb1760f6 Replace removed Parser::getUser
Change-Id: I50cfeef97402d2b718d0fbe6254b6bd7ac48a810
2021-12-09 12:54:09 +01:00
Alexander Vorwerk e37a2fd2be Use DB_PRIMARY instead of deprecated DB_MASTER
Raise support floor to 1.35.3 for this.

Change-Id: Ieb1651d5934772fd207d42f70167cd993af0a54b
2021-09-18 14:40:40 +02:00
Jack Phoenix 86bf2319be Remove Database#(start|end)Atomic method calls to prevent deadlocks
Change-Id: Id10de191d03673c6445b1f971d7cf9407392f129
2021-07-14 18:16:02 +03:00
Umherirrender 4ab46c250f build: Remove unneeded @codingStandardsIgnore
Instead split long lines

Bug: T278594
Change-Id: I3ddab608254ac4f09dcef0519d952e208f263930
2021-04-04 20:13:02 +02:00
zoranzoki21 4e4a2c36f2 Fix MediaWiki.Files.ClassMatchesFilename.NotMatch
Change-Id: Ib9779e15ade2832b57bcd96112daa7a70a31482c
2020-09-10 19:30:46 +02:00
Renamed from includes/AJAXPoll.class.php (Browse further)