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:
commit
ad200b7f95
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Files extends \OCA\Files\Helper
|
||||||
$entry['type'] = $i['type'];
|
$entry['type'] = $i['type'];
|
||||||
if ($i['type'] === 'file') {
|
if ($i['type'] === 'file') {
|
||||||
$entry['mimetype'] = $i['mimetype'];
|
$entry['mimetype'] = $i['mimetype'];
|
||||||
$entry['humansize'] = \OC_Helper::humanFileSize($i['size']);
|
$entry['humansize'] = \OCP\Util::humanFileSize($i['size']);
|
||||||
$entry['meta'] = Meta::get($i['fileid']);
|
$entry['meta'] = Meta::get($i['fileid']);
|
||||||
}
|
}
|
||||||
return $entry;
|
return $entry;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue