Merge "Save upload related title vars in ARTICLE prefix not FILE"

This commit is contained in:
jenkins-bot 2016-04-04 18:53:45 +00:00 committed by Gerrit Code Review
commit 6d2acf6e6b
2 changed files with 2 additions and 2 deletions

View file

@ -676,7 +676,7 @@ class AbuseFilterHooks {
$vars->addHolders(
AbuseFilter::generateUserVars( $wgUser ),
AbuseFilter::generateTitleVars( $title, 'FILE' )
AbuseFilter::generateTitleVars( $title, 'ARTICLE' )
);
$vars->setVar( 'ACTION', 'upload' );

View file

@ -129,7 +129,7 @@ class AbuseFilterVariableHolder {
$coreVariables = array_keys( $coreVariables['vars'] );
// Title vars can have several prefixes
$prefixes = array( 'ARTICLE', 'MOVED_FROM', 'MOVED_TO', 'FILE' );
$prefixes = array( 'ARTICLE', 'MOVED_FROM', 'MOVED_TO' );
$titleVars = array(
'_ARTICLEID',
'_NAMESPACE',