Fix batch testing interface, there was old code using the old variable API

This commit is contained in:
Andrew Garrett 2009-03-22 02:46:05 +00:00
parent 2495c5fcf7
commit f672c4cee3

View file

@ -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;
}