r50133 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50132‎ | r50133 | r50134 >
Date:14:47, 2 May 2009
Author:catrope
Status:resolved
Tags:
Comment:
Update ConfirmEdit for r50132
Modified paths:
  • /trunk/extensions/ConfirmEdit/ConfirmEdit_body.php (modified) (history)

Diff [purge]

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

Follow-up revisions

RevisionCommit summaryAuthorDate
r50221ConfirmEdit: Backport r50133 and r50219catrope14:12, 5 May 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r50132API: Set $wgTitle to a dummy title in api.php, and introduce defined('API') a...catrope14:47, 2 May 2009

Status & tagging log