From b37d412ea16d30c9ee43ffc7a8e52363253eac55 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 6 Aug 2010 12:15:23 +0000 Subject: [PATCH] (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 --- includes/api/ApiEditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] ) { -- 2.20.1