diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-31 21:16:36 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-31 21:16:36 +0200 |
commit | 5f4132d6badc660267d41098e673e30f62f8028e (patch) | |
tree | 311df90981bb0494e4fd0ff2e1b5e9eaf142687a /apps/files_versions | |
parent | 57a56299d8a216cad170e0510167d0d7777f1f8a (diff) | |
download | nextcloud-server-5f4132d6badc660267d41098e673e30f62f8028e.tar.gz nextcloud-server-5f4132d6badc660267d41098e673e30f62f8028e.zip |
more fixes
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/versions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versions/versions.php b/apps/files_versions/versions.php index ed4fd97e518..f39b5a7f4eb 100644 --- a/apps/files_versions/versions.php +++ b/apps/files_versions/versions.php @@ -81,7 +81,7 @@ class Storage { Storage::init(); // check if filename is a directory - if(is_dir($filesfoldername.$filename)){ + if(is_dir($filesfoldername.'/'.$filename)){ return false; } @@ -143,7 +143,7 @@ class Storage { $filesfoldername=\OCP\Config::getSystemValue('datadirectory').'/'. $uid .'/files'; // rollback - if ( @copy($versionsfoldername.'/'.$filename.'.v'.$revision,$filesfoldername.$filename) ) { + if ( @copy($versionsfoldername.'/'.$filename.'.v'.$revision,$filesfoldername.'/'.$filename) ) { return true; |