summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2015-01-12 12:03:21 +0100
committerBjörn Schießle <bjoern@schiessle.org>2015-01-12 12:03:21 +0100
commit331d73c3a37e74f1e322b9bfb239940275422a65 (patch)
treed597222e1c7977e09246ddb8b987f1bee10123ff /apps/files_versions
parentddf81c2ed988ddce244fd60c2a3a08027e9c228e (diff)
parentd699d3151810784d01b59019fdf40f0924556ddc (diff)
downloadnextcloud-server-331d73c3a37e74f1e322b9bfb239940275422a65.tar.gz
nextcloud-server-331d73c3a37e74f1e322b9bfb239940275422a65.zip
Merge pull request #13182 from owncloud/download_versions
make versions of shared files downloadable
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/lib/storage.php6
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;