From: Roan Kattouw Date: Sat, 2 May 2009 14:47:59 +0000 (+0000) Subject: Update ConfirmEdit for r50132 X-Git-Url: https://git.toastfreeware.priv.at/toast/cookiecaptcha.git/commitdiff_plain/57a4a3972e8e39f2a5c308ecffa25c67e4a2e1f2 Update ConfirmEdit for r50132 --- diff --git a/ConfirmEdit_body.php b/ConfirmEdit_body.php index 00bea4c..1f93ecf 100644 --- a/ConfirmEdit_body.php +++ b/ConfirmEdit_body.php @@ -480,8 +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 ) { - global $wgTitle; - if( is_null( $wgTitle ) ) { + if( defined('API') ) { # API mode # The CAPTCHA was already checked and approved return true;