From: Björn Schießle Date: Mon, 7 Jan 2013 14:13:32 +0000 (+0100) Subject: adjust timestamp of the file copied from the version history X-Git-Tag: v5.0.0alpha1~251^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a0b0a1d2947f909ea6f5d1878b91aa63a9c6f9db;p=nextcloud-server.git adjust timestamp of the file copied from the version history --- diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index a17ce5a22b1..ccbbf3ab2cd 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -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; } } }