From: Björn Schießle Date: Wed, 16 Jan 2013 09:18:40 +0000 (+0100) Subject: initialize X-Git-Tag: v5.0.0alpha1~233^2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f71a5dec99ce75da42ad0953a8b66029b9b01974;p=nextcloud-server.git initialize --- diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 2378f037b51..48be5e223ac 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -151,7 +151,8 @@ class Storage { if(\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED)=='true') { list($uid, $filename) = self::getUidAndFilename($filename); $users_view = new \OC_FilesystemView('/'.$uid); - + $versionCreated = false; + //first create a new version $version = 'files_versions'.$filename.'.v'.$users_view->filemtime('files'.$filename); if ( !$users_view->file_exists($version)) {