Skip to content
Snippets Groups Projects
Commit 417498d5 authored by Björn Schießle's avatar Björn Schießle
Browse files

add complete size of versions to array

parent d51fba77
No related branches found
No related tags found
No related merge requests found
......@@ -245,10 +245,12 @@ class Storage {
$result = array();
$file_count = array();
$size_full = 0;
foreach( $versions as $key => $value ) {
$i++;
$size = $versions_fileview->filesize($value['path']);
$size_full = $size_full + $size;
$filename = substr($value['path'], 0, -strlen($value['timestamp'])-2);
$result['all'][$i]['version'] = $value['timestamp'];
......@@ -269,6 +271,8 @@ class Storage {
}
$result['size'] = $size_full;
return $result;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment