Commit graph

10 commits

Author SHA1 Message Date
Brad Jorsch 9d61668ab3 ApiResult::META_BC_BOOLS in ApiAbuseFilterCheckMatch
Coded to maintain BC with older versions of MediaWiki core. If that's
not needed anymore, a followup should remove all the instances of the
check.

Bug: T99240
Change-Id: I5dc112598676915416fbacd4c30f218ac84d324d
2015-05-18 10:30:02 -04:00
Brad Jorsch 51e5a28f24 Add i18n for API module help
MediaWiki core change I04b1a384 added support for i18n of API module
help. This takes advantage of that while still maintaining backwards
compatibility with earlier versions of MediaWiki.

Once support for MediaWiki before 1.25 is dropped, the methods marked
deprecated in this patch may be removed.

Change-Id: I67395aff48185f3e09da31b51a08aa2541fe6a17
2014-10-29 16:37:37 -04:00
addshore f3a829329e Remove use of deprecated getPossibleErrors (since 1.24)
Change-Id: If43d20687b5aaf78880c7d91e7487da5cb5f7e17
2014-08-29 11:56:02 +01:00
helderwiki f73b148a82 Do not ignore the "vars" parameter on action=abusefiltercheckmatch
For this, we just need to convert the associative array to an
instance of AbuseFilterVariableHolder.

Bug: 53501
Change-Id: Ie6925e1ce7df6c6c179e32ff69ff4138a3285545
2014-08-02 11:38:19 +00:00
Siebrand Mazeland ddc930e897 Ensure variables are defined
Change-Id: Iab1d36b0162c1d7a91cdd80ac36bbf338e7df61d
2013-11-06 17:09:24 +01:00
umherirrender b3456b1e17 API: Add text for Unknown error: "permissiondenied"
The api does not known a generic "permissiondenied" message.

Change-Id: I65822c9f58ce323352db759d46bf11d4ddab14bd
2013-10-27 17:33:39 +01:00
Sam Reed 76a226ed77 Fix action= examples from r95572, need abusefilter prefix 2012-01-13 21:36:51 +00:00
John Du Hart 274dcd06a2 Pass one of converting AbuseFilter to use ContextSource
The main AbuseFilter class still needs to be fixed up, but that's a bigger job and I'm out of time
2011-11-16 05:34:24 +00:00
John Du Hart 9c75f9907f Followup r95572, minor tweaks per CR 2011-09-30 00:48:00 +00:00
John Du Hart 3f06314486 Followup r95572, rename API modules to reduce chance of collisions per CR 2011-09-29 23:30:42 +00:00
Renamed from api/ApiCheckFilterMatch.php (Browse further)