summaryrefslogtreecommitdiff
path: root/app/Core/Plugin
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-22 21:27:02 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-22 21:27:02 -0400
commit2af45250c46b431823a9bfaa28e393c70fb931d8 (patch)
treea172be4a0b7b5b4f219459ea207a0f454c7dbffb /app/Core/Plugin
parent9523ff44c04bf915e8b819ba8502ea5d20127d17 (diff)
Add config parameter PLUGINS_DIR
Diffstat (limited to 'app/Core/Plugin')
-rw-r--r--app/Core/Plugin/Loader.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Core/Plugin/Loader.php b/app/Core/Plugin/Loader.php
index 2758f37e..04b2bfff 100644
--- a/app/Core/Plugin/Loader.php
+++ b/app/Core/Plugin/Loader.php
@@ -28,8 +28,8 @@ class Loader extends \Core\Base
*/
public function scan()
{
- if (file_exists(__DIR__.'/../../../plugins')) {
- $dir = new DirectoryIterator(__DIR__.'/../../../plugins');
+ if (file_exists(PLUGINS_DIR)) {
+ $dir = new DirectoryIterator(PLUGINS_DIR);
foreach ($dir as $fileinfo) {
if (! $fileinfo->isDot() && $fileinfo->isDir()) {
@@ -65,7 +65,7 @@ class Loader extends \Core\Base
*/
public function loadSchema($plugin)
{
- $filename = __DIR__.'/../../../plugins/'.$plugin.'/Schema/'.ucfirst(DB_DRIVER).'.php';
+ $filename = PLUGINS_DIR.'/'.$plugin.'/Schema/'.ucfirst(DB_DRIVER).'.php';
if (file_exists($filename)) {
require_once($filename);