Index: branches/REL1_15/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('MW_API') ) { |
486 | 485 | # API mode |
487 | 486 | # The CAPTCHA was already checked and approved |
488 | 487 | return true; |
Property changes on: branches/REL1_15/extensions/ConfirmEdit |
___________________________________________________________________ |
Name: svn:mergeinfo |
489 | 488 | + /trunk/extensions/ConfirmEdit:50133,50219 |