Save upload related title vars in ARTICLE prefix not FILE

We don't define FILE_* as useable title variables, so they're
not accessible

Change-Id: I857b55937204c9ecd2bbd433a33f360b7d3e3aa7
This commit is contained in:
Reedy 2016-04-02 23:04:19 +01:00
parent 98cb0973cd
commit f2715ee51c
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',