From: Thomas Müller Date: Fri, 17 Oct 2014 09:46:22 +0000 (+0200) Subject: fixing usage of EncryptionException X-Git-Tag: v7.0.3RC2~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5b6ba397347eb751cdd19fe6f3d5abb331031889;p=nextcloud-server.git fixing usage of EncryptionException --- 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; }