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

Merge pull request #22 from ayamshanov/deprecated_humanFileSize

Switch to public function humanFileSize()
This commit is contained in:
Frank de Lange 2016-08-17 14:53:41 +02:00 committed by GitHub
commit ad200b7f95

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;