]> source.dussan.org Git - nextcloud-server.git/commitdiff
adjust timestamp of the file copied from the version history
authorBjörn Schießle <schiessle@owncloud.com>
Mon, 7 Jan 2013 14:13:32 +0000 (15:13 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Mon, 7 Jan 2013 14:13:32 +0000 (15:13 +0100)
apps/files_versions/lib/versions.php

index a17ce5a22b1a421bd5dbfe2c762e28a91e5a3eb6..ccbbf3ab2cdaab2cab480fb69fc47b611bbaddc8 100644 (file)
@@ -117,14 +117,14 @@ class Storage {
                        
                        // rollback
                        if( @$users_view->copy('files_versions'.$filename.'.v'.$revision, 'files'.$filename) ) {
+                               $users_view->touch('files'.$filename, $revision);
                                Storage::expire($filename);
                                return true;
 
                        }else{
                                if (isset($version) ) {
                                        $users_view->unlink($version);
-                               return false;
-
+                                       return false;
                                }
                        }
                }