Fix timestamps for recently uploaded files
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Wed, 30 Jan 2008 18:44:15 +0000 (18:44 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Wed, 30 Jan 2008 18:44:15 +0000 (18:44 +0000)
includes/filerepo/LocalFile.php

index 3409b5b..c09da7c 100644 (file)
@@ -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