summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-01-22 11:10:23 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2014-01-22 11:10:23 +0100
commit0b89a45f11b820d7d40e5f4a3c476d42a0577f58 (patch)
tree3ed871cd480e4f9307065200cb1f61dac3dac1b1 /apps/files_versions/lib
parent3b7fea25a30aa7dc590d90c5c91147ae9d94ba13 (diff)
downloadnextcloud-server-0b89a45f11b820d7d40e5f4a3c476d42a0577f58.tar.gz
nextcloud-server-0b89a45f11b820d7d40e5f4a3c476d42a0577f58.zip
fix size calculation of getAllVersions()
Diffstat (limited to 'apps/files_versions/lib')
-rw-r--r--apps/files_versions/lib/versions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 8463bd9482c..3dd0c5985e6 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.php
@@ -402,7 +402,7 @@ class Storage {
$result = array();
foreach ($versions as $key => $value) {
- $size = $view->filesize($value['path']);
+ $size = $view->filesize(self::VERSIONS_ROOT.'/'.$value['path'].'.v'.$value['timestamp']);
$filename = $value['path'];
$result['all'][$key]['version'] = $value['timestamp'];