diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-05-14 00:38:32 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-05-14 10:18:04 +0200 |
commit | 1ae3fa40037b0ac6ec279e5cb66587889bbe1507 (patch) | |
tree | 55d2287e632fee90bd50696fa3f1bc7417083ee7 /apps/settings/lib | |
parent | 0f03a892b980bbd8faebf554e20e6d727fc1b373 (diff) | |
download | nextcloud-server-1ae3fa40037b0ac6ec279e5cb66587889bbe1507.tar.gz nextcloud-server-1ae3fa40037b0ac6ec279e5cb66587889bbe1507.zip |
chore: replace leagcy OC_Helper calls with OCP\Utilchore/oc-helper-filesize
- Replace legacy calls with OCP\Util
- Add missing deprecation notices
- Inline implementation in OCP\Util and call it from OC_Helper
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r-- | apps/settings/lib/Settings/Personal/PersonalInfo.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php index 1032f97361b..c8e9e732cd8 100644 --- a/apps/settings/lib/Settings/Personal/PersonalInfo.php +++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php @@ -71,7 +71,7 @@ class PersonalInfo implements ISettings { if ($storageInfo['quota'] === FileInfo::SPACE_UNLIMITED) { $totalSpace = $this->l->t('Unlimited'); } else { - $totalSpace = \OC_Helper::humanFileSize($storageInfo['total']); + $totalSpace = \OCP\Util::humanFileSize($storageInfo['total']); } $messageParameters = $this->getMessageParameters($account); @@ -88,7 +88,7 @@ class PersonalInfo implements ISettings { 'groups' => $this->getGroups($user), 'quota' => $storageInfo['quota'], 'totalSpace' => $totalSpace, - 'usage' => \OC_Helper::humanFileSize($storageInfo['used']), + 'usage' => \OCP\Util::humanFileSize($storageInfo['used']), 'usageRelative' => round($storageInfo['relative']), 'displayName' => $this->getProperty($account, IAccountManager::PROPERTY_DISPLAYNAME), 'emailMap' => $this->getEmailMap($account), |