mediawiki-extensions-AbuseF.../includes/Hooks/AbuseFilterGetDangerousActionsHook.php
Daimona Eaytoy 4c06dd52c8 Replace $wgAbuseFilterRestrictions with more specific variables
So that sysadmins can further customize the extension. It was also wrong
to use the same variable for many different things.

Note that there's no associated patch in wmf-config because we use the
defaults. However, before merging this patch, please recheck that
AbuseFilterRestrictions and AbuseFilterDisallowGlobalLocalBlocks aren't
used there (https://codesearch.wmflabs.org/operations/?q=AbuseFilterDisallowGlobalLocalBlocks%7CAbuseFilterRestrictions&i=nope&files=&repos=)

Bug: T175221
Change-Id: I7581b3ee6d9d11a6cf1599b8ff874e8c3d54adf4
2020-10-22 13:38:59 +00:00

16 lines
402 B
PHP

<?php
namespace MediaWiki\Extension\AbuseFilter\Hooks;
interface AbuseFilterGetDangerousActionsHook {
/**
* Hook runner for the `AbuseFilterGetDangerousActions` hook
*
* Allows specifying custom consequences which can harm the user and prevent
* the edit from being saved.
*
* @param string[] &$actions
*/
public function onAbuseFilterGetDangerousActions( array &$actions ) : void;
}