diff options
author | Björn Schießle <bjoern@schiessle.org> | 2015-01-12 12:03:21 +0100 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-01-12 12:03:21 +0100 |
commit | 331d73c3a37e74f1e322b9bfb239940275422a65 (patch) | |
tree | d597222e1c7977e09246ddb8b987f1bee10123ff /apps/files_versions | |
parent | ddf81c2ed988ddce244fd60c2a3a08027e9c228e (diff) | |
parent | d699d3151810784d01b59019fdf40f0924556ddc (diff) | |
download | nextcloud-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.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; |