diff --git a/AbuseFilter.hooks.php b/AbuseFilter.hooks.php index 859ad8692..ab4dc3f1c 100755 --- a/AbuseFilter.hooks.php +++ b/AbuseFilter.hooks.php @@ -676,7 +676,7 @@ class AbuseFilterHooks { $vars->addHolders( AbuseFilter::generateUserVars( $wgUser ), - AbuseFilter::generateTitleVars( $title, 'FILE' ) + AbuseFilter::generateTitleVars( $title, 'ARTICLE' ) ); $vars->setVar( 'ACTION', 'upload' ); diff --git a/AbuseFilterVariableHolder.php b/AbuseFilterVariableHolder.php index 2855dbef2..34a8c9854 100644 --- a/AbuseFilterVariableHolder.php +++ b/AbuseFilterVariableHolder.php @@ -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',