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:
Daimona Eaytoy 2018-08-25 19:06:35 +02:00
parent 937252a74c
commit 8094a49dcf

View file

@ -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 );