*/\r
\r
namespace OCA\Encryption;\r
+use OCA\Encryption\Exceptions\EncryptionException;\r
\r
require_once __DIR__ . '/../3rdparty/Crypt_Blowfish/Blowfish.php';\r
\r
$padded = self::addPadding($catfile);\r
\r
return $padded;\r
- } catch (OCA\Encryption\Exceptions\EncryptionException $e) {\r
- $message = 'Could not encrypt file content (code: ' . $e->getCode . '): ';\r
- \OCP\Util::writeLog('files_encryption', $message . $e->getMessage, \OCP\Util::ERROR);\r
+ } catch (EncryptionException $e) {\r
+ $message = 'Could not encrypt file content (code: ' . $e->getCode() . '): ';\r
+ \OCP\Util::writeLog('files_encryption', $message . $e->getMessage(), \OCP\Util::ERROR);\r
return false;\r
}\r
\r