mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Fix batch testing interface, there was old code using the old variable API
This commit is contained in:
parent
2495c5fcf7
commit
f672c4cee3
|
@ -1267,9 +1267,13 @@ class AbuseFilter {
|
|||
}
|
||||
|
||||
public static function getCreateVarsFromRCRow( $row ) {
|
||||
$vars = array('ACTION' => 'createaccount');
|
||||
$vars['USER_NAME'] = $vars['ACCOUNTNAME'] =
|
||||
Title::makeTitle( $row->rc_namespace, $row->rc_title )->getText();
|
||||
$vars = new AbuseFilterVariableHolder;
|
||||
|
||||
$vars->setVar('ACTION', 'createaccount');
|
||||
|
||||
$name = Title::makeTitle( $row->rc_namespace, $row->rc_title )->getText();
|
||||
$vars->setVar( 'user_name', $name );
|
||||
$vars->setVar( 'accountname', $name );
|
||||
return $vars;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue