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

fixes #4099

Closes #4099

Merge request studip/studip!2948
parent 2f64b607
No related branches found
No related tags found
No related merge requests found
...@@ -452,17 +452,14 @@ class PluginAdministration ...@@ -452,17 +452,14 @@ class PluginAdministration
} }
// determine the plugin path // determine the plugin path
$basepath = Config::get()->PLUGINS_PATH;
$pluginpath = $origin . '/' . $pluginclass; $pluginpath = $origin . '/' . $pluginclass;
$pluginregistered = $plugin_manager->getPluginInfo($pluginclass);
if ($pluginregistered) {
throw new PluginInstallationException(_('Das Plugin ist bereits registriert.'));
}
// create database schema if needed // 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 // now register the plugin in the database
$pluginid = $plugin_manager->registerPlugin($manifest['pluginname'], $pluginclass, $pluginpath); $pluginid = $plugin_manager->registerPlugin($manifest['pluginname'], $pluginclass, $pluginpath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment