From: Roan Kattouw Date: Fri, 6 Aug 2010 12:15:23 +0000 (+0000) Subject: (bug 24665) When starttimestamp is not specified, fake it by setting it to NOW, not... X-Git-Tag: 1.31.0-rc.0~35673 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=b37d412ea16d30c9ee43ffc7a8e52363253eac55;p=lhc%2Fweb%2Fwiklou.git (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 --- diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 819558d693..984b8aa406 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -172,7 +172,7 @@ class ApiEditPage extends ApiBase { 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'] ) {