aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-12-02 16:08:06 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2014-12-02 16:08:06 +0100
commit9ca9acf3f89a08b160d443b0e68e1d72c621e116 (patch)
treeedc75ef7f335ce74b490d6403841d8c90197fc11 /apps/files_encryption
parent2e78217f17fb0c387baeda737b4206130dc00130 (diff)
downloadnextcloud-server-9ca9acf3f89a08b160d443b0e68e1d72c621e116.tar.gz
nextcloud-server-9ca9acf3f89a08b160d443b0e68e1d72c621e116.zip
small fixes
Diffstat (limited to 'apps/files_encryption')
-rw-r--r--apps/files_encryption/hooks/hooks.php4
1 files changed, 2 insertions, 2 deletions
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);