diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-11 12:34:34 +0400 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-11 12:34:34 +0400 |
commit | a0de5dd325fb9898a842733143fa36028cff1076 (patch) | |
tree | 4896e3e136b46e96a86817e91290b7350257a377 /apps/files_versions | |
parent | f4e86045dee9578e80cd323d7ea56823388dd4ec (diff) |
some small fixes
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/lib/versions.php | 3 |
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']; |