From 57a4a3972e8e39f2a5c308ecffa25c67e4a2e1f2 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 2 May 2009 14:47:59 +0000 Subject: [PATCH] Update ConfirmEdit for r50132 --- ConfirmEdit_body.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.30.2