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;