Added global LYCHEE_PLUGINS

This commit is contained in:
Tobias Reich 2014-04-18 12:59:14 +02:00
parent 4ba743fea4
commit 25eb998c12
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ define('LYCHEE_DATA', LYCHEE . 'data/');
define('LYCHEE_UPLOADS_BIG', LYCHEE . 'uploads/big/'); define('LYCHEE_UPLOADS_BIG', LYCHEE . 'uploads/big/');
define('LYCHEE_UPLOADS_THUMB', LYCHEE . 'uploads/thumb/'); define('LYCHEE_UPLOADS_THUMB', LYCHEE . 'uploads/thumb/');
define('LYCHEE_UPLOADS_IMPORT', LYCHEE . 'uploads/import/'); define('LYCHEE_UPLOADS_IMPORT', LYCHEE . 'uploads/import/');
define('LYCHEE_PLUGINS', LYCHEE . 'plugins/');
# Define files # Define files
define('LYCHEE_CONFIG_FILE', LYCHEE_DATA . 'config.php'); define('LYCHEE_CONFIG_FILE', LYCHEE_DATA . 'config.php');

View File

@ -27,7 +27,7 @@ class Plugins implements \SplSubject {
# Load plugins # Load plugins
foreach ($this->files as $file) { foreach ($this->files as $file) {
if ($file==='') continue; if ($file==='') continue;
include(__DIR__ . '/../../plugins/' . $file); include(LYCHEE_PLUGINS . $file);
} }
return true; return true;