mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Generate upload variables using new prefixes
This wasn't changed in I5c370b54e6516889624088e27928ad3a1f48a821 but really needs to be merged, to avoid setting wrong variables. At the moment this is still fine due to temporary overrides in AbuseFilter::generateTitleVars, but this should be merged ASAP anyway. Bug: T173889 Change-Id: I2e6058a6fa122470a30cd4a96c68eccc66e18ae4
This commit is contained in:
parent
937252a74c
commit
8094a49dcf
|
@ -719,7 +719,7 @@ class AbuseFilterHooks {
|
|||
$vars = new AbuseFilterVariableHolder;
|
||||
$vars->addHolders(
|
||||
AbuseFilter::generateUserVars( $user ),
|
||||
AbuseFilter::generateTitleVars( $title, 'ARTICLE' )
|
||||
AbuseFilter::generateTitleVars( $title, 'PAGE' )
|
||||
);
|
||||
$vars->setVar( 'ACTION', $action );
|
||||
|
||||
|
|
Loading…
Reference in a new issue