mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
chore: cleanup human_file_size usage
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
897c2d3934
commit
101b1f0eaf
2 changed files with 6 additions and 5 deletions
|
|
@ -238,14 +238,15 @@ function publicPreview_icon($path, $token) {
|
|||
}
|
||||
|
||||
/**
|
||||
* make OC_Helper::humanFileSize available as a simple function
|
||||
* make Util::humanFileSize available as a simple function
|
||||
* @param int $bytes size in bytes
|
||||
* @return string size as string
|
||||
* @deprecated use Util::humanFileSize instead
|
||||
*
|
||||
* For further information have a look at OC_Helper::humanFileSize
|
||||
* For further information have a look at Util::humanFileSize
|
||||
*/
|
||||
function human_file_size($bytes) {
|
||||
return OC_Helper::humanFileSize($bytes);
|
||||
return Util::humanFileSize($bytes);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -81,10 +81,10 @@ class Template extends \OC_Template {
|
|||
* @param int $bytes in bytes
|
||||
* @return string size as string
|
||||
* @since 8.0.0
|
||||
* @deprecated 32.0.0 Use the function directly instead
|
||||
* @deprecated 32.0.0 Use \OCP\Util::humanFileSize instead
|
||||
*/
|
||||
public static function human_file_size($bytes) {
|
||||
return \human_file_size($bytes);
|
||||
return Util::humanFileSize($bytes);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue