Update ConfirmEdit for r50132

This commit is contained in:
Roan Kattouw 2009-05-02 14:47:59 +00:00
parent fb35385650
commit 57a4a3972e

View file

@ -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;