Index: trunk/extensions/AbuseFilter/ApiQueryAbuseLog.php |
— | — | @@ -79,6 +79,7 @@ |
80 | 80 | $this->addWhereRange('afl_timestamp', $params['dir'], $params['start'], $params['end']); |
81 | 81 | |
82 | 82 | $this->addWhereIf( array('afl_user_text' => $params['user']), isset($params['user'])); |
| 83 | + $this->addWhereIf( array('afl_filter' => $params['filter']), isset($params['filter'])); |
83 | 84 | |
84 | 85 | $title = $params['title']; |
85 | 86 | if (!is_null($title)) { |
— | — | @@ -150,6 +151,7 @@ |
151 | 152 | ), |
152 | 153 | 'user' => null, |
153 | 154 | 'title' => null, |
| 155 | + 'filter' => null, |
154 | 156 | 'limit' => array( |
155 | 157 | ApiBase :: PARAM_DFLT => 10, |
156 | 158 | ApiBase :: PARAM_TYPE => 'limit', |
— | — | @@ -179,8 +181,9 @@ |
180 | 182 | 'start' => 'The timestamp to start enumerating from', |
181 | 183 | 'end' => 'The timestamp to stop enumerating at', |
182 | 184 | 'dir' => 'The direction in which to enumerate', |
183 | | - 'title' => 'Filter entries to those occurring on a given page.', |
184 | | - 'user' => 'Filter entries to those done by a given user or IP address.', |
| 185 | + 'title' => 'Show only entries occurring on a given page.', |
| 186 | + 'user' => 'Show only entries done by a given user or IP address.', |
| 187 | + 'filter' => 'Show only entries that were caught by a given filter ID', |
185 | 188 | 'limit' => 'The maximum amount of entries to list', |
186 | 189 | 'prop' => 'Which properties to get', |
187 | 190 | ); |