diff --git a/includes/AbuseFilter.class.php b/includes/AbuseFilter.class.php index 6bdf83777..f0af762b1 100644 --- a/includes/AbuseFilter.class.php +++ b/includes/AbuseFilter.class.php @@ -2019,7 +2019,7 @@ class AbuseFilter { static function translateFromHistory( $row ) { # Translate into an abuse_filter row with some black magic. # This is ever so slightly evil! - $af_row = new StdClass; + $af_row = new stdClass; foreach ( self::$history_mappings as $af_col => $afh_col ) { $af_row->$af_col = $row->$afh_col; diff --git a/includes/AbuseFilter.hooks.php b/includes/AbuseFilter.hooks.php index 6bd4d0cd6..b102341b0 100644 --- a/includes/AbuseFilter.hooks.php +++ b/includes/AbuseFilter.hooks.php @@ -277,7 +277,7 @@ class AbuseFilterHooks { $fdb->update( 'abuse_filter_log', [ 'afl_rev_id' => $revision->getId() ], - [ 'afl_id' => $log_ids, 'afl_wiki' => wfWikiId() ], + [ 'afl_id' => $log_ids, 'afl_wiki' => wfWikiID() ], __METHOD__ ); } diff --git a/includes/Views/AbuseFilterViewRevert.php b/includes/Views/AbuseFilterViewRevert.php index 496da51fd..98e853e9a 100644 --- a/includes/Views/AbuseFilterViewRevert.php +++ b/includes/Views/AbuseFilterViewRevert.php @@ -211,7 +211,7 @@ class AbuseFilterViewRevert extends AbuseFilterView { return true; case 'blockautopromote': ObjectCache::getMainStashInstance()->delete( - AbuseFilter::autopromoteBlockKey( User::newFromId( $result['userid'] ) ) + AbuseFilter::autoPromoteBlockKey( User::newFromId( $result['userid'] ) ) ); return true; case 'degroup':