diff options
| author | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2022-02-23 12:36:58 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2022-02-23 12:36:58 +0100 |
| commit | 96938f46a3835c14a1047fc4ff21322ed653009f (patch) | |
| tree | 841d0313e1bc78c9b2bf2e795776812ff813fe77 /cli | |
| parent | 0935cd55d35815779f7c7ece68c215cf26e613a7 (diff) | |
create plugin path for database only right before storing it in the database (otherwise the command cannot find vital files), fixes #701
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/Commands/Plugins/PluginRegister.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/Commands/Plugins/PluginRegister.php b/cli/Commands/Plugins/PluginRegister.php index 5167fa3..a9ae129 100644 --- a/cli/Commands/Plugins/PluginRegister.php +++ b/cli/Commands/Plugins/PluginRegister.php @@ -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); |
