Index: trunk/extensions/ConfirmEdit/ConfirmEdit_body.php |
— | — | @@ -480,8 +480,7 @@ |
481 | 481 | * @return bool true to continue saving, false to abort and show a captcha form |
482 | 482 | */ |
483 | 483 | function confirmEdit( &$editPage, $newtext, $section, $merged = false ) { |
484 | | - global $wgTitle; |
485 | | - if( is_null( $wgTitle ) ) { |
| 484 | + if( defined('API') ) { |
486 | 485 | # API mode |
487 | 486 | # The CAPTCHA was already checked and approved |
488 | 487 | return true; |