From: Victor Vasiliev Date: Wed, 30 Jan 2008 18:44:15 +0000 (+0000) Subject: Fix timestamps for recently uploaded files X-Git-Tag: 1.31.0-rc.0~49693 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=e815faefe89ad8140d5cc85052f095c24b1b46ea;p=lhc%2Fweb%2Fwiklou.git Fix timestamps for recently uploaded files --- 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