chore: cleanup human_file_size usage

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2025-03-11 11:53:26 +01:00 committed by Côme Chilliet
parent 897c2d3934
commit 101b1f0eaf
2 changed files with 6 additions and 5 deletions

View file

@ -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);
}
/**

View file

@ -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);
}
/**