Merge "LocalFile: Ensure same timestamp for log entry and image revision"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 25 Jan 2016 20:13:30 +0000 (20:13 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 25 Jan 2016 20:13:30 +0000 (20:13 +0000)
includes/filerepo/file/LocalFile.php

index 9e214f6..2b5a4e6 100644 (file)
@@ -1355,6 +1355,7 @@ class LocalFile extends File {
 
                // Add the log entry...
                $logEntry = new ManualLogEntry( 'upload', $reupload ? 'overwrite' : 'upload' );
+               $logEntry->setTimestamp( $this->timestamp );
                $logEntry->setPerformer( $user );
                $logEntry->setComment( $comment );
                $logEntry->setTarget( $descTitle );