summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/versions.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/versions.php')
-rw-r--r--apps/files_versions/versions.php4
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;