mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 17:40:11 +00:00
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:
parent
8eb32f5a2d
commit
93818fe9d1
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue