mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-12 00:38:23 +00:00
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:
parent
8b2d1985c4
commit
0879428747
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue