Actually rename the variable

This commit is contained in:
Robin Appelman 2014-01-27 16:26:54 +01:00
parent c8207312c7
commit 20c2aaab00

View file

@ -26,7 +26,7 @@ class Quota extends Wrapper {
public function __construct($parameters) {
$this->storage = $parameters['storage'];
$this->quota = $parameters['quota'];
$this->freeSpaceRoot = isset($parameters['root']) ? $parameters['root'] : '';
$this->sizeRoot = isset($parameters['root']) ? $parameters['root'] : '';
}
protected function getSize($path) {
@ -49,7 +49,7 @@ class Quota extends Wrapper {
if ($this->quota < 0) {
return $this->storage->free_space($path);
} else {
$used = $this->getSize($this->freeSpaceRoot);
$used = $this->getSize($this->sizeRoot);
if ($used < 0) {
return \OC\Files\SPACE_NOT_COMPUTED;
} else {