1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

Switch to public function humanFileSize()

This commit is contained in:
Alexander Yamshanov 2016-07-06 01:37:14 +06:00
parent 2a62589537
commit 5d6f5e08b7

View file

@ -32,7 +32,7 @@ class Files extends \OCA\Files\Helper
$entry['type'] = $i['type'];
if ($i['type'] === 'file') {
$entry['mimetype'] = $i['mimetype'];
$entry['humansize'] = \OC_Helper::humanFileSize($i['size']);
$entry['humansize'] = \OCP\Util::humanFileSize($i['size']);
$entry['meta'] = Meta::get($i['fileid']);
}
return $entry;