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']);
} 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'];