diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-01-15 13:29:59 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-01-15 14:34:15 +0100 |
commit | 60d5d5f6364fb5caf8e56d18479cf54bf428cb82 (patch) | |
tree | 2c4447a8b1de545a308158cb6877ef9666fcf137 /apps | |
parent | bb9cc227c2583adc6b51a1f6d75a9fc8333836b9 (diff) | |
download | nextcloud-server-60d5d5f6364fb5caf8e56d18479cf54bf428cb82.tar.gz nextcloud-server-60d5d5f6364fb5caf8e56d18479cf54bf428cb82.zip |
fix for issue #1186, missing variables added
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_versions/lib/versions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index f938a2dbe84..2378f037b51 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -79,6 +79,7 @@ class Storage { // create all parent folders $info=pathinfo($filename); + $versionsFolderName=\OCP\Config::getSystemValue('datadirectory').$users_view->getAbsolutePath('files_versions/'); if(!file_exists($versionsFolderName.'/'.$info['dirname'])) { mkdir($versionsFolderName.'/'.$info['dirname'], 0750, true); } @@ -127,7 +128,8 @@ class Storage { list($uid, $oldpath) = self::getUidAndFilename($oldpath); list($uidn, $newpath) = self::getUidAndFilename($newpath);
$versions_view = new \OC_FilesystemView('/'.$uid .'/files_versions'); - $files_view = new \OC_FilesystemView('/'.$uid .'/files');
+ $files_view = new \OC_FilesystemView('/'.$uid .'/files'); + $abs_newpath = \OCP\Config::getSystemValue('datadirectory').$versions_view->getAbsolutePath('').$newpath;
if ( $files_view->is_dir($oldpath) && $versions_view->is_dir($oldpath) ) { $versions_view->rename($oldpath, $newpath); |