more fixes

This commit is contained in:
Frank Karlitschek 2012-05-31 21:16:36 +02:00
parent 57a56299d8
commit 5f4132d6ba
1 changed files with 2 additions and 2 deletions

View File

@ -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;