mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Fix block durations dropdown
A month ago SpecialBlock::getSuggestedDurations has been modified, and now it also returns an "other" key. Since we don't need it and it would break thing up, add a parameter to avoid dealing with that. Depends-On: Ic2dbc961f7eebad11da53724b9cce2f804ffad39 Change-Id: Ica37ba7015a04445c2cbafebcc85726368e23cb0
This commit is contained in:
parent
35c4590a34
commit
7992349789
|
@ -771,7 +771,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
}
|
||||
$defaultUserDuration = $config->get( 'AbuseFilterBlockDuration' );
|
||||
}
|
||||
$suggestedBlocks = SpecialBlock::getSuggestedDurations();
|
||||
$suggestedBlocks = SpecialBlock::getSuggestedDurations( null, false );
|
||||
$suggestedBlocks = self::normalizeBlocks( $suggestedBlocks );
|
||||
|
||||
$output = '';
|
||||
|
|
Loading…
Reference in a new issue