http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70557
Revision: 70557 Author: catrope Date: 2010-08-06 12:15:23 +0000 (Fri, 06 Aug 2010) Log Message: ----------- (bug 24665) When starttimestamp is not specified, fake it by setting it to NOW, not to the timestamp of the last edit. This caused 'pagedeleted' errors for pages that were deleted then partially undeleted that could only be gotten rid of by setting starttimestamp, while the docs claim not setting starttimestamp causes all such errors to be silenced Modified Paths: -------------- trunk/phase3/includes/api/ApiEditPage.php Modified: trunk/phase3/includes/api/ApiEditPage.php =================================================================== --- trunk/phase3/includes/api/ApiEditPage.php 2010-08-06 12:12:29 UTC (rev 70556) +++ trunk/phase3/includes/api/ApiEditPage.php 2010-08-06 12:15:23 UTC (rev 70557) @@ -172,7 +172,7 @@ if ( !is_null( $params['starttimestamp'] ) && $params['starttimestamp'] != '' ) { $reqArr['wpStarttime'] = wfTimestamp( TS_MW, $params['starttimestamp'] ); } else { - $reqArr['wpStarttime'] = $reqArr['wpEdittime']; // Fake wpStartime + $reqArr['wpStarttime'] = wfTimestampNow(); // Fake wpStartime } if ( $params['minor'] ) { _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs