]> source.dussan.org Git - nextcloud-server.git/commitdiff
WIN: fixing Fatal error: Call to a member function logicToPhysical() on a non-object...
authorThomas Mueller <thomas.mueller@tmit.eu>
Sat, 2 Nov 2013 19:22:12 +0000 (20:22 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Sat, 2 Nov 2013 19:22:12 +0000 (20:22 +0100)
lib/private/files/storage/home.php

index 47a76c1b84081bb4c8fca85bf8d6734f80f357ce..bf1d6017cbf9ed1ab2b2f5c9f5b54ad74335543a 100644 (file)
@@ -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() {