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

fixes #4099

Closes #4099

Merge request studip/studip!2948
parent a756b099
No related branches found
No related tags found
No related merge requests found
......@@ -452,17 +452,14 @@ class PluginAdministration
}
// determine the plugin path
$basepath = Config::get()->PLUGINS_PATH;
$pluginpath = $origin . '/' . $pluginclass;
$pluginregistered = $plugin_manager->getPluginInfo($pluginclass);
if ($pluginregistered) {
throw new PluginInstallationException(_('Das Plugin ist bereits registriert.'));
}
// create database schema if needed
$this->createDBSchema($plugindir, $manifest, $pluginregistered);
$this->createDBSchema(
$plugindir,
$manifest,
(bool) $plugin_manager->getPluginInfo($pluginclass)
);
// now register the plugin in the database
$pluginid = $plugin_manager->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