adjust timestamp of the file copied from the version history
This commit is contained in:
parent
619c3ef56d
commit
a0b0a1d294
|
@ -117,14 +117,14 @@ class Storage {
|
||||||
|
|
||||||
// rollback
|
// rollback
|
||||||
if( @$users_view->copy('files_versions'.$filename.'.v'.$revision, 'files'.$filename) ) {
|
if( @$users_view->copy('files_versions'.$filename.'.v'.$revision, 'files'.$filename) ) {
|
||||||
|
$users_view->touch('files'.$filename, $revision);
|
||||||
Storage::expire($filename);
|
Storage::expire($filename);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
if (isset($version) ) {
|
if (isset($version) ) {
|
||||||
$users_view->unlink($version);
|
$users_view->unlink($version);
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue