aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/files/storage/home.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/private/files/storage/home.php b/lib/private/files/storage/home.php
index 47a76c1b840..bf1d6017cbf 100644
--- a/lib/private/files/storage/home.php
+++ b/lib/private/files/storage/home.php
@@ -19,10 +19,9 @@ class Home extends Local {
public function __construct($arguments) {
$this->user = $arguments['user'];
- $this->datadir = $this->user->getHome();
- if (substr($this->datadir, -1) !== '/') {
- $this->datadir .= '/';
- }
+ $datadir = $this->user->getHome();
+
+ parent::__construct(array('datadir' => $datadir));
}
public function getId() {