Skip to content
Snippets Groups Projects
Commit 56a2b5b7 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

create plugin path for database only right before storing it in the database...

create plugin path for database only right before storing it in the database (otherwise the command cannot find vital files), fixes #701
parent a82c95a8
No related branches found
No related tags found
No related merge requests found
...@@ -45,8 +45,6 @@ class PluginRegister extends AbstractPluginCommand ...@@ -45,8 +45,6 @@ class PluginRegister extends AbstractPluginCommand
} }
// determine the plugin path // determine the plugin path
$basepath = \Config::get()->PLUGINS_PATH;
$pluginpath = $origin . '/' . $pluginclass;
$pluginregistered = $pluginManager->getPluginInfo($pluginclass); $pluginregistered = $pluginManager->getPluginInfo($pluginclass);
// create database schema if needed // create database schema if needed
...@@ -67,6 +65,8 @@ class PluginRegister extends AbstractPluginCommand ...@@ -67,6 +65,8 @@ class PluginRegister extends AbstractPluginCommand
$migrator->migrateTo(null); $migrator->migrateTo(null);
} }
$pluginpath = $origin . '/' . $pluginclass;
// now register the plugin in the database // now register the plugin in the database
$pluginid = $pluginManager->registerPlugin($manifest['pluginname'], $pluginclass, $pluginpath); $pluginid = $pluginManager->registerPlugin($manifest['pluginname'], $pluginclass, $pluginpath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment