mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Merge "Save upload related title vars in ARTICLE prefix not FILE"
This commit is contained in:
commit
6d2acf6e6b
|
@ -676,7 +676,7 @@ class AbuseFilterHooks {
|
|||
|
||||
$vars->addHolders(
|
||||
AbuseFilter::generateUserVars( $wgUser ),
|
||||
AbuseFilter::generateTitleVars( $title, 'FILE' )
|
||||
AbuseFilter::generateTitleVars( $title, 'ARTICLE' )
|
||||
);
|
||||
|
||||
$vars->setVar( 'ACTION', 'upload' );
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue