Commit graph

13 commits

Author SHA1 Message Date
Brad Jorsch 4cbea0bcf7 Update for API error i18n
See Iae0e2ce3.

Change-Id: I09c564413f91e410bf9ba8336f65cb14d7105a07
2016-11-15 11:15:58 -05:00
Brad Jorsch b31d903900 Value for ApiResult::META_BC_BOOLS must be an array
Bug: T149279
Change-Id: I140ea6b299d263d3fbb2bdd87d88f2744e9c63cf
2016-10-27 10:10:31 -04:00
Brad Jorsch 3aa76b0f5f Remove pre-1.25 API compatibility code
Since this extension uses extension.json, it already requires 1.25+ so
no need to keep the old code around.

Change-Id: I6f968be3b7ef7cbc7193c8e103beb36ecf9c7b60
2016-09-20 15:31:58 -04:00
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)