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
This commit is contained in:
Stephane Bisson 2018-07-17 11:25:35 -04:00
parent 8eb32f5a2d
commit 93818fe9d1

View file

@ -514,7 +514,7 @@ class SimpleCaptcha {
* null this will be loaded from the database. * null this will be loaded from the database.
* @return bool true if the captcha should run * @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 ) { if ( !$context instanceof IContextSource ) {
$context = RequestContext::getMain(); $context = RequestContext::getMain();
} }