Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/files
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-11-11 22:43:57 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-11 22:43:57 +0400
commitb6cd2a375869186ce57e1255e664d0ccaf42a2c8 (patch)
tree98ea3c0f300b3b378afdc1d474b4aaa333b100f4 /lib/files
parent0a422ed489bad6d624bf6798a4bbd156623ce4b8 (diff)
fixes #5808
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/storage/home.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/files/storage/home.php b/lib/files/storage/home.php
index 9521730765e..533fe5fe390 100644
--- a/lib/files/storage/home.php
+++ b/lib/files/storage/home.php
@@ -12,20 +12,20 @@ namespace OC\Files\Storage;
* Specialized version of Local storage for home directory usage
*/
class Home extends Local {
+
/**
- * @var \OC\User\User $user
+ * @var string $user
*/
protected $user;
public function __construct($arguments) {
$this->user = $arguments['user'];
- $this->datadir = $arguments['datadir'];
- if (substr($this->datadir, -1) !== '/') {
- $this->datadir .= '/';
- }
+ $datadir = $arguments['datadir'];
+
+ parent::__construct(array('datadir' => $datadir));
}
public function getId() {
return 'home::' . $this->user;
}
-} \ No newline at end of file
+}