some small fixes

This commit is contained in:
Bjoern Schiessle 2013-10-11 10:34:34 +02:00
parent f4e86045de
commit a0de5dd325
1 changed files with 1 additions and 2 deletions

View File

@ -357,7 +357,7 @@ class Storage {
array_push($dirs, $file['path']); array_push($dirs, $file['path']);
} else { } else {
$versionsBegin = strrpos($file['path'], '.v'); $versionsBegin = strrpos($file['path'], '.v');
$relPathStart = strlen($versionsPath); $relPathStart = strlen(self::VERSIONS_ROOT);
$version = substr($file['path'], $versionsBegin + 2); $version = substr($file['path'], $versionsBegin + 2);
$relpath = substr($file['path'], $relPathStart, $versionsBegin - $relPathStart); $relpath = substr($file['path'], $relPathStart, $versionsBegin - $relPathStart);
$key = $version . '#' . $relpath; $key = $version . '#' . $relpath;
@ -371,7 +371,6 @@ class Storage {
$result = array(); $result = array();
foreach ($versions as $key => $value) { foreach ($versions as $key => $value) {
$i++;
$size = $view->filesize($value['path']); $size = $view->filesize($value['path']);
$filename = $value['path']; $filename = $value['path'];