adjust timestamp of the file copied from the version history
This commit is contained in:
parent
619c3ef56d
commit
a0b0a1d294
|
@ -117,6 +117,7 @@ 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;
|
||||
|
||||
|
@ -124,7 +125,6 @@ class Storage {
|
|||
if (isset($version) ) {
|
||||
$users_view->unlink($version);
|
||||
return false;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue