Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions lib/private/legacy/OC_Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,6 @@ public static function isDefaultExpireDateEnforced() {
return $shareManager->shareApiLinkDefaultExpireDateEnforced();
}

/**
* Get the quota of a user
*
* @param IUser|null $user
* @return int|\OCP\Files\FileInfo::SPACE_UNLIMITED|false|float Quota bytes
* @deprecated 9.0.0 - Use \OCP\IUser::getQuota or \OCP\IUser::getQuotaBytes
*/
public static function getUserQuota(?IUser $user) {
if (is_null($user)) {
return \OCP\Files\FileInfo::SPACE_UNLIMITED;
}
$userQuota = $user->getQuota();
if ($userQuota === 'none') {
return \OCP\Files\FileInfo::SPACE_UNLIMITED;
}
return \OCP\Util::computerFileSize($userQuota);
}

/**
* copies the skeleton to the users /files
*
Expand Down Expand Up @@ -297,7 +279,7 @@ public static function addHeader($tag, $attributes, $text = null, $prepend = fal
}

/**
* check if the current server configuration is suitable for ownCloud
* Check if the current server environment configuration is suitable for Nextcloud
*
* @return array arrays with error messages and hints
*/
Expand Down
Loading