From 93818fe9d133ddc1ca18fe3d3f97a801cc87119e Mon Sep 17 00:00:00 2001 From: Stephane Bisson Date: Tue, 17 Jul 2018 11:25:35 -0400 Subject: [PATCH] Make shouldCheck public again Follow up Ie956fe86184535a376d0398483ac3c853fa9127c Make SimpleCaptcha::shouldCheck public since it is called by Flow/includes/SpamFilter/ConfirmEdit.php(35) and is now failing in production. Bug: T199811 Change-Id: I85a813aaa06b896266c320089e24ca2e5e81d0ee --- SimpleCaptcha/SimpleCaptcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimpleCaptcha/SimpleCaptcha.php b/SimpleCaptcha/SimpleCaptcha.php index 8fbe26c04..33de1a9b9 100644 --- a/SimpleCaptcha/SimpleCaptcha.php +++ b/SimpleCaptcha/SimpleCaptcha.php @@ -514,7 +514,7 @@ class SimpleCaptcha { * null this will be loaded from the database. * @return bool true if the captcha should run */ - private function shouldCheck( WikiPage $page, $content, $section, $context, $oldtext = null ) { + public function shouldCheck( WikiPage $page, $content, $section, $context, $oldtext = null ) { if ( !$context instanceof IContextSource ) { $context = RequestContext::getMain(); }