From: Bjoern Schiessle Date: Tue, 2 Dec 2014 15:08:06 +0000 (+0100) Subject: small fixes X-Git-Tag: v8.0.0alpha1~188^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9ca9acf3f89a08b160d443b0e68e1d72c621e116;p=nextcloud-server.git small fixes --- diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 53fec11009d..d40e6b3d124 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -485,7 +485,7 @@ class Hooks { // create key folders if it doesn't exists if (!$view->file_exists(dirname($newKeysPath))) { - $view->mkdir(dirname($newKeysPath)); + $view->mkdir(dirname($newKeysPath)); } $view->$operation($oldKeysPath, $newKeysPath); @@ -566,7 +566,7 @@ class Hooks { return true; } - $util = new Util(new \OC\Files\View('/'), \OCP\USER::getUser()); + $util = new Util($view, \OCP\USER::getUser()); $keysPath = Keymanager::getKeyPath($view, $util, $path);