mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-24 10:48:17 +00:00
Fix MWException from AbuseFilterView
The case default was recently added, but didn't take into account that "false" is valid too. Noticed by chance just before the train rolled out. Change-Id: I67ca475fa16ea449820f8c735531c2cc1b0ec975
This commit is contained in:
parent
ba1b27d7f6
commit
8f9b27d856
|
@ -286,6 +286,9 @@ abstract class AbuseFilterView extends ContextSource {
|
|||
'rc_log_type' => 'delete',
|
||||
'rc_log_action' => 'delete'
|
||||
], LIST_AND );
|
||||
case false:
|
||||
// Done later
|
||||
break;
|
||||
// @ToDo: case 'upload'
|
||||
default:
|
||||
throw new MWException( __METHOD__ . ' called with invalid action: ' . $action );
|
||||
|
|
Loading…
Reference in a new issue