don't check for min interval, no longer needed

This commit is contained in:
Björn Schießle 2012-12-17 17:14:24 +01:00
parent 75a871ecd7
commit 2a42344781
1 changed files with 1 additions and 16 deletions

View File

@ -85,21 +85,6 @@ class Storage {
return false; return false;
} }
// check mininterval if the file is being modified by the owner (all shared files should be versioned despite mininterval)
if ($uid == \OCP\User::getUser()) {
$versions_fileview = new \OC_FilesystemView('/'.$uid.'/files_versions');
$versionsName=\OCP\Config::getSystemValue('datadirectory').$versions_fileview->getAbsolutePath($filename);
$versionsFolderName=\OCP\Config::getSystemValue('datadirectory').$versions_fileview->getAbsolutePath('');
$matches=glob($versionsName.'.v*');
sort($matches);
$parts=explode('.v', end($matches));
if((end($parts)+Storage::$max_versions_per_interval[1]['step'])>time()) {
return false;
}
}
// create all parent folders // create all parent folders
$info=pathinfo($filename); $info=pathinfo($filename);
if(!file_exists($versionsFolderName.'/'.$info['dirname'])) { if(!file_exists($versionsFolderName.'/'.$info['dirname'])) {
@ -310,4 +295,4 @@ class Storage {
} }
} }
} }
}