From 25eb998c120ccf9e309f9bf137976878d04e0b89 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 18 Apr 2014 12:59:14 +0200 Subject: [PATCH] Added global LYCHEE_PLUGINS --- php/define.php | 1 + php/modules/Plugins.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/php/define.php b/php/define.php index 4745535..842634e 100644 --- a/php/define.php +++ b/php/define.php @@ -14,6 +14,7 @@ define('LYCHEE_DATA', LYCHEE . 'data/'); define('LYCHEE_UPLOADS_BIG', LYCHEE . 'uploads/big/'); define('LYCHEE_UPLOADS_THUMB', LYCHEE . 'uploads/thumb/'); define('LYCHEE_UPLOADS_IMPORT', LYCHEE . 'uploads/import/'); +define('LYCHEE_PLUGINS', LYCHEE . 'plugins/'); # Define files define('LYCHEE_CONFIG_FILE', LYCHEE_DATA . 'config.php'); diff --git a/php/modules/Plugins.php b/php/modules/Plugins.php index a9490da..253b136 100644 --- a/php/modules/Plugins.php +++ b/php/modules/Plugins.php @@ -27,7 +27,7 @@ class Plugins implements \SplSubject { # Load plugins foreach ($this->files as $file) { if ($file==='') continue; - include(__DIR__ . '/../../plugins/' . $file); + include(LYCHEE_PLUGINS . $file); } return true;