From 5b6ba397347eb751cdd19fe6f3d5abb331031889 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20M=C3=BCller?= Date: Fri, 17 Oct 2014 11:46:22 +0200 Subject: [PATCH] fixing usage of EncryptionException --- apps/files_encryption/lib/crypt.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/files_encryption/lib/crypt.php b/apps/files_encryption/lib/crypt.php index f0905a89203..bd86b2b69b5 100755 --- a/apps/files_encryption/lib/crypt.php +++ b/apps/files_encryption/lib/crypt.php @@ -24,6 +24,7 @@ */ namespace OCA\Encryption; +use OCA\Encryption\Exceptions\EncryptionException; require_once __DIR__ . '/../3rdparty/Crypt_Blowfish/Blowfish.php'; @@ -321,9 +322,9 @@ class Crypt { $padded = self::addPadding($catfile); return $padded; - } catch (OCA\Encryption\Exceptions\EncryptionException $e) { - $message = 'Could not encrypt file content (code: ' . $e->getCode . '): '; - \OCP\Util::writeLog('files_encryption', $message . $e->getMessage, \OCP\Util::ERROR); + } catch (EncryptionException $e) { + $message = 'Could not encrypt file content (code: ' . $e->getCode() . '): '; + \OCP\Util::writeLog('files_encryption', $message . $e->getMessage(), \OCP\Util::ERROR); return false; } -- 2.39.5