summaryrefslogtreecommitdiff
path: root/app/Core/Plugin/Loader.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Plugin/Loader.php')
-rw-r--r--app/Core/Plugin/Loader.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Core/Plugin/Loader.php b/app/Core/Plugin/Loader.php
index 9a884dae..ea512c4e 100644
--- a/app/Core/Plugin/Loader.php
+++ b/app/Core/Plugin/Loader.php
@@ -1,10 +1,10 @@
<?php
-namespace Core\Plugin;
+namespace Kanboard\Core\Plugin;
use DirectoryIterator;
use PDOException;
-use Core\Tool;
+use Kanboard\Core\Tool;
/**
* Plugin Loader
@@ -12,7 +12,7 @@ use Core\Tool;
* @package plugin
* @author Frederic Guillot
*/
-class Loader extends \Core\Base
+class Loader extends \Kanboard\Core\Base
{
/**
* Schema version table for plugins
@@ -57,7 +57,7 @@ class Loader extends \Core\Base
*/
public function load($plugin)
{
- $class = '\Plugin\\'.$plugin.'\\Plugin';
+ $class = '\Kanboard\Plugin\\'.$plugin.'\\Plugin';
$instance = new $class($this->container);
Tool::buildDic($this->container, $instance->getClasses());
@@ -90,7 +90,7 @@ class Loader extends \Core\Base
*/
public function migrateSchema($plugin)
{
- $last_version = constant('\Plugin\\'.$plugin.'\Schema\VERSION');
+ $last_version = constant('\Kanboard\Plugin\\'.$plugin.'\Schema\VERSION');
$current_version = $this->getSchemaVersion($plugin);
try {
@@ -99,7 +99,7 @@ class Loader extends \Core\Base
$this->db->getDriver()->disableForeignKeys();
for ($i = $current_version + 1; $i <= $last_version; $i++) {
- $function_name = '\Plugin\\'.$plugin.'\Schema\version_'.$i;
+ $function_name = '\Kanboard\Plugin\\'.$plugin.'\Schema\version_'.$i;
if (function_exists($function_name)) {
call_user_func($function_name, $this->db->getConnection());