aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/lib')
-rw-r--r--apps/files_versions/lib/versions.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 77242216655..dae2de83b81 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.php
@@ -357,7 +357,7 @@ class Storage {
array_push($dirs, $file['path']);
} else {
$versionsBegin = strrpos($file['path'], '.v');
- $relPathStart = strlen($versionsPath);
+ $relPathStart = strlen(self::VERSIONS_ROOT);
$version = substr($file['path'], $versionsBegin + 2);
$relpath = substr($file['path'], $relPathStart, $versionsBegin - $relPathStart);
$key = $version . '#' . $relpath;
@@ -371,7 +371,6 @@ class Storage {
$result = array();
foreach ($versions as $key => $value) {
- $i++;
$size = $view->filesize($value['path']);
$filename = $value['path'];