mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
Update ConfirmEdit for r50132
This commit is contained in:
parent
fb35385650
commit
57a4a3972e
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue