BryanDavis has uploaded a new change for review. https://gerrit.wikimedia.org/r/299707
Change subject: Avoid accessing private $filters field ...................................................................... Avoid accessing private $filters field Use getFilter() instead. Bug: T139657 Change-Id: Ibb8600fe68fd7d08bba498509aefbb57330769ab (cherry picked from commit fcb500940c408df02e34e7b3dabb7c6f1cd01d39) --- M includes/AbuseFilterCheck.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/07/299707/1 diff --git a/includes/AbuseFilterCheck.php b/includes/AbuseFilterCheck.php index 21626d9..3b351b7 100644 --- a/includes/AbuseFilterCheck.php +++ b/includes/AbuseFilterCheck.php @@ -118,7 +118,7 @@ $results = []; foreach ( $actions as $key => $val ) { - $rulename = \AbuseFilter::$filters[$key]->af_public_comments; + $rulename = \AbuseFilter::getFilter( $key )->af_public_comments; // No point alerting the user about non-serious actions. T136596 $actionsForRule = array_keys( $val ); -- To view, visit https://gerrit.wikimedia.org/r/299707 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibb8600fe68fd7d08bba498509aefbb57330769ab Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: wmf/1.28.0-wmf.10 Gerrit-Owner: BryanDavis <bda...@wikimedia.org> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits