summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-04-24 14:46:18 -0400
committerFrederic Guillot <fred@kanboard.net>2016-04-24 14:46:18 -0400
commit2cd06f8795e1d4e3c9c267e399e2925be8a9e5a7 (patch)
treee8e04db7436041b30db6fd7e85e333ba54d1047c /app
parentda1725c225c94bcdffe4dba4c068db8e1e11cbe7 (diff)
Use PLUGINS_DIR constant to load plugin templates
Diffstat (limited to 'app')
-rw-r--r--app/Core/Plugin/Loader.php2
-rw-r--r--app/Core/Template.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Core/Plugin/Loader.php b/app/Core/Plugin/Loader.php
index 0b009f75..799024ad 100644
--- a/app/Core/Plugin/Loader.php
+++ b/app/Core/Plugin/Loader.php
@@ -73,7 +73,7 @@ class Loader extends \Kanboard\Core\Base
$instance = new $class($this->container);
- Tool::buildDic($this->container, $instance->getClasses());
+ Tool::buildDIC($this->container, $instance->getClasses());
Tool::buildDICHelpers($this->container, $instance->getHelpers());
$instance->initialize();
diff --git a/app/Core/Template.php b/app/Core/Template.php
index 1874d44a..d3ec26d5 100644
--- a/app/Core/Template.php
+++ b/app/Core/Template.php
@@ -116,7 +116,7 @@ class Template
}
if ($plugin !== 'kanboard' && $plugin !== '') {
- return implode(DIRECTORY_SEPARATOR, array(__DIR__, '..', '..', 'plugins', ucfirst($plugin), 'Template', $template.'.php'));
+ return implode(DIRECTORY_SEPARATOR, array(PLUGINS_DIR, ucfirst($plugin), 'Template', $template.'.php'));
}
return implode(DIRECTORY_SEPARATOR, array(__DIR__, '..', 'Template', $template.'.php'));