]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixed public-keys mount point error
authorFlorin Peter <github@florin-peter.de>
Tue, 30 Apr 2013 22:09:55 +0000 (00:09 +0200)
committerFlorin Peter <github@florin-peter.de>
Tue, 30 Apr 2013 22:09:55 +0000 (00:09 +0200)
apps/files_encryption/hooks/hooks.php

index 25c2d091c4b86dc8ccf8b297dc4eb2f54ae7db9c..e27054f0ec825b76add24382655880fced3e63a6 100644 (file)
@@ -45,7 +45,12 @@ class Hooks {
        \r
                $view = new \OC_FilesystemView( '/' );\r
 \r
-               $util = new Util( $view, $params['uid'] );\r
+        $userHome = \OC_User::getHome($params['uid']);\r
+        $dataDir = str_replace('/'.$params['uid'], '', $userHome);\r
+\r
+        \OC\Files\Filesystem::mount( 'OC_Filestorage_Local', array('datadir' => $dataDir .'/public-keys'), '/public-keys/' );\r
+\r
+        $util = new Util( $view, $params['uid'] );\r
                \r
                // Check files_encryption infrastructure is ready for action\r
                if ( ! $util->ready() ) {\r