diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-08 20:57:49 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-09 12:46:24 +0100 |
commit | d699d3151810784d01b59019fdf40f0924556ddc (patch) | |
tree | 20b6b81817cbe19f3689c51730c935ce5495f868 /apps/files_versions | |
parent | 5311d92c5c9dc0de297e36e4009b1e99f386e6bd (diff) | |
download | nextcloud-server-d699d3151810784d01b59019fdf40f0924556ddc.tar.gz nextcloud-server-d699d3151810784d01b59019fdf40f0924556ddc.zip |
make versions of shared files downloadable
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/lib/storage.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_versions/lib/storage.php b/apps/files_versions/lib/storage.php index 3d30ada863a..0fbb80f425f 100644 --- a/apps/files_versions/lib/storage.php +++ b/apps/files_versions/lib/storage.php @@ -139,10 +139,10 @@ class Storage { \OC_FileProxy::$enabled = false; // store a new version of a file - $mtime = $users_view->filemtime('files'.$filename); - $users_view->copy('files'.$filename, 'files_versions'.$filename.'.v'. $mtime); + $mtime = $users_view->filemtime('files/' . $filename); + $users_view->copy('files/' . $filename, 'files_versions/' . $filename . '.v' . $mtime); // call getFileInfo to enforce a file cache entry for the new version - $users_view->getFileInfo('files_versions'.$filename.'.v'.$mtime); + $users_view->getFileInfo('files_versions/' . $filename . '.v' . $mtime); // reset proxy state \OC_FileProxy::$enabled = $proxyStatus; |