From d3883ddfbb0934077e6dbada6084b3fb5694a5b0 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 11 Mar 2014 06:12:41 -0400
Subject: [PATCH] Make sure attachment ID is really unique when uploading multiple files (#1489546)
---
plugins/database_attachments/database_attachments.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/plugins/database_attachments/database_attachments.php b/plugins/database_attachments/database_attachments.php
index f908074..5ec3514 100644
--- a/plugins/database_attachments/database_attachments.php
+++ b/plugins/database_attachments/database_attachments.php
@@ -13,7 +13,9 @@
* @author Aleksander Machniak <alec@alec.pl>
* @version @package_version@
*/
-require_once('plugins/filesystem_attachments/filesystem_attachments.php');
+
+require_once INSTALL_PATH . 'plugins/filesystem_attachments/filesystem_attachments.php';
+
class database_attachments extends filesystem_attachments
{
// Cache object
--
Gitblit v1.9.1