Skip to content
Snippets Groups Projects
Commit 96938f46 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 0935cd55
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,6 @@ class PluginRegister extends AbstractPluginCommand
}
// determine the plugin path
$basepath = \Config::get()->PLUGINS_PATH;
$pluginpath = $origin . '/' . $pluginclass;
$pluginregistered = $pluginManager->getPluginInfo($pluginclass);
// create database schema if needed
......@@ -67,6 +65,8 @@ class PluginRegister extends AbstractPluginCommand
$migrator->migrateTo(null);
}
$pluginpath = $origin . '/' . $pluginclass;
// now register the plugin in the database
$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