summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-05-17 14:49:54 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-05-17 14:49:54 +0200
commit002445e23d8dcefe2545f22e6914d7cfa7ebbbd1 (patch)
treede681771c2e949b73fe3dd2f97c930b3e5209ea2 /apps
parent93771f735b2347eb851941a414220af7b6ccd066 (diff)
downloadnextcloud-server-002445e23d8dcefe2545f22e6914d7cfa7ebbbd1.tar.gz
nextcloud-server-002445e23d8dcefe2545f22e6914d7cfa7ebbbd1.zip
some typo fixed
Diffstat (limited to 'apps')
-rw-r--r--apps/files_encryption/lib/util.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php
index a2dee1ca71f..f1042ed759a 100644
--- a/apps/files_encryption/lib/util.php
+++ b/apps/files_encryption/lib/util.php
@@ -716,8 +716,8 @@ class Util {
$sharingEnabled = \OCP\Share::isEnabled();
// if file exists try to get sharing users
- if ($view->file_exists($legacyFile['path'])) {
- $uniqueUserIds = $util->getSharingUsersArray($sharingEnabled, $legacyFile['path'], $this->userId);
+ if ($this->view->file_exists($legacyFile['path'])) {
+ $uniqueUserIds = $this->getSharingUsersArray($sharingEnabled, $legacyFile['path'], $this->userId);
} else {
$uniqueUserIds[] = $this->userId;
}
@@ -726,7 +726,7 @@ class Util {
$publicKeys = Keymanager::getPublicKeys($this->view, $uniqueUserIds);
// Recrypt data, generate catfile
- $recrypted = Crypt::legacyKeyRecryptKeyfile($legacyData, $legacyPassphrase, $publicKey, $newPassphrase, $legacyFile['path'], $publicKeys);
+ $recrypted = Crypt::legacyKeyRecryptKeyfile($legacyData, $legacyPassphrase, $publicKeys, $newPassphrase, $legacyFile['path']);
$rawPath = $legacyFile['path'];
$relPath = $this->stripUserFilesPath($rawPath);