summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-31 21:16:36 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-31 21:16:36 +0200
commit5f4132d6badc660267d41098e673e30f62f8028e (patch)
tree311df90981bb0494e4fd0ff2e1b5e9eaf142687a /apps/files_versions
parent57a56299d8a216cad170e0510167d0d7777f1f8a (diff)
downloadnextcloud-server-5f4132d6badc660267d41098e673e30f62f8028e.tar.gz
nextcloud-server-5f4132d6badc660267d41098e673e30f62f8028e.zip
more fixes
Diffstat (limited to 'apps/files_versions')
-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;