From e815faefe89ad8140d5cc85052f095c24b1b46ea Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Wed, 30 Jan 2008 18:44:15 +0000 Subject: [PATCH] Fix timestamps for recently uploaded files --- includes/filerepo/LocalFile.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 3409b5b54b..c09da7c04a 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -5,7 +5,7 @@ /** * Bump this number when serialized cache records may be incompatible. */ -define( 'MW_FILE_VERSION', 6 ); +define( 'MW_FILE_VERSION', 7 ); /** * Class to represent a local file in the wiki's own database @@ -729,6 +729,7 @@ class LocalFile extends File $props['description'] = $comment; $props['user'] = $wgUser->getID(); $props['user_text'] = $wgUser->getName(); + $props['timestamp'] = wfTimestamp( TS_MW ); $this->setProps( $props ); // Delete thumbnails and refresh the metadata cache -- 2.20.1