mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-25 11:16:25 +00:00
add option to search by filter ID to be consistent with UI, and change param descriptions to be less ambiguous
This commit is contained in:
parent
2e9bd6dd80
commit
79360d48a4
|
@ -79,6 +79,7 @@ class ApiQueryAbuseLog extends ApiQueryBase {
|
|||
$this->addWhereRange('afl_timestamp', $params['dir'], $params['start'], $params['end']);
|
||||
|
||||
$this->addWhereIf( array('afl_user_text' => $params['user']), isset($params['user']));
|
||||
$this->addWhereIf( array('afl_filter' => $params['filter']), isset($params['filter']));
|
||||
|
||||
$title = $params['title'];
|
||||
if (!is_null($title)) {
|
||||
|
@ -150,6 +151,7 @@ class ApiQueryAbuseLog extends ApiQueryBase {
|
|||
),
|
||||
'user' => null,
|
||||
'title' => null,
|
||||
'filter' => null,
|
||||
'limit' => array(
|
||||
ApiBase :: PARAM_DFLT => 10,
|
||||
ApiBase :: PARAM_TYPE => 'limit',
|
||||
|
@ -179,8 +181,9 @@ class ApiQueryAbuseLog extends ApiQueryBase {
|
|||
'start' => 'The timestamp to start enumerating from',
|
||||
'end' => 'The timestamp to stop enumerating at',
|
||||
'dir' => 'The direction in which to enumerate',
|
||||
'title' => 'Filter entries to those occurring on a given page.',
|
||||
'user' => 'Filter entries to those done by a given user or IP address.',
|
||||
'title' => 'Show only entries occurring on a given page.',
|
||||
'user' => 'Show only entries done by a given user or IP address.',
|
||||
'filter' => 'Show only entries that were caught by a given filter ID',
|
||||
'limit' => 'The maximum amount of entries to list',
|
||||
'prop' => 'Which properties to get',
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue