From 454b0b1ca983adfa2e40e47ccbd0dc384c141d9a Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 05 Nov 2015 03:17:28 -0500
Subject: [PATCH] Remove deprecated rcmail and rcube_imap methods

---
 plugins/database_attachments/database_attachments.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/database_attachments/database_attachments.php b/plugins/database_attachments/database_attachments.php
index 82c2b59..f3804f3 100644
--- a/plugins/database_attachments/database_attachments.php
+++ b/plugins/database_attachments/database_attachments.php
@@ -28,7 +28,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-if (class_exists('filesystem_attachments', false)) {
+if (class_exists('filesystem_attachments', false) && !defined('TESTS_DIR')) {
     die("Configuration issue. There can be only one enabled plugin for attachments handling");
 }
 

--
Gitblit v1.9.1