diff --git a/ConfirmEdit_body.php b/ConfirmEdit_body.php index 1f93ecfdb..e5b975fb6 100644 --- a/ConfirmEdit_body.php +++ b/ConfirmEdit_body.php @@ -480,7 +480,7 @@ class SimpleCaptcha { * @return bool true to continue saving, false to abort and show a captcha form */ function confirmEdit( &$editPage, $newtext, $section, $merged = false ) { - if( defined('API') ) { + if( defined('MW_API') ) { # API mode # The CAPTCHA was already checked and approved return true;