Added global LYCHEE_PLUGINS
This commit is contained in:
parent
4ba743fea4
commit
25eb998c12
@ -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');
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user