(bug 24665) When starttimestamp is not specified, fake it by setting it to NOW, not...
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 6 Aug 2010 12:15:23 +0000 (12:15 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 6 Aug 2010 12:15:23 +0000 (12:15 +0000)
includes/api/ApiEditPage.php

index 819558d..984b8aa 100644 (file)
@@ -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'] ) {