Skip to content

Commit 0b0351a

Browse files
authored
Update maxQuota to use OCP\
1 parent 39736c7 commit 0b0351a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Rules/TariffRules.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ private function isQuotaFlagSet(object $claims, $tariff) {
6767
* Nextcloud human readable storage sizes
6868
*/
6969
private function maxQuota(string $left, string $right) {
70-
$leftBytes = \OC_Helper::computerFileSize($left);
71-
$rightBytes = \OC_Helper::computerFileSize($right);
70+
$leftBytes = \OCP\Util::computerFileSize($left);
71+
$rightBytes = \OCP\Util::computerFileSize($right);
7272
if ($leftBytes > $rightBytes) {
7373
return $left;
7474
} else {

0 commit comments

Comments
 (0)