From 1e4ebf47e26579d6bd0334b4853ee0c960c1b2a6 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 27 Aug 2013 00:57:28 +0200 Subject: webdav quota now displays the same values as the web interface does --- lib/connector/sabre/directory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/connector/sabre') diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php index ed8d085462d..66cd2fcd4e3 100644 --- a/lib/connector/sabre/directory.php +++ b/lib/connector/sabre/directory.php @@ -233,10 +233,10 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa * @return array */ public function getQuotaInfo() { - $rootInfo=\OC\Files\Filesystem::getFileInfo(''); + $storageInfo = OC_Helper::getStorageInfo($this->path); return array( - $rootInfo['size'], - \OC\Files\Filesystem::free_space() + $storageInfo['used'], + $storageInfo['total'] ); } -- cgit v1.2.3