Pass a title instead of a user object. For some reason we were passing a user object into the hook :/

This commit is contained in:
Andrew Garrett 2008-06-27 08:16:11 +00:00
parent 8b2d1985c4
commit 0879428747

View file

@ -62,7 +62,7 @@ class AbuseFilterHooks {
$vars['SUMMARY'] = $reason;
$vars['ACTION'] = 'delete';
$filter_result = AbuseFilter::filterAction( $vars, $user );
$filter_result = AbuseFilter::filterAction( $vars, $article->mTitle );
$error = "BLAH\n$filter_result";
@ -75,7 +75,7 @@ class AbuseFilterHooks {
$vars['ACTION'] = 'createaccount';
$vars['ACCOUNTNAME'] = $username;
$filter_result = AbuseFilter::filterAction( $vars, $user );
$filter_result = AbuseFilter::filterAction( $vars, SpecialPage::getTitleFor( 'Userlogin' ) );
$error = "BLAH\n$filter_result";