1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 10:34:23 +02:00

Merge pull request #1735 from lonalore/master

Plugin installation dependency fixes.
This commit is contained in:
Cameron
2016-06-29 14:42:38 -07:00
committed by GitHub
5 changed files with 187 additions and 63 deletions

View File

@@ -734,6 +734,17 @@ class pluginManager{
}
$plug = $plugin->getinfo($this->id);
// Check if plugin is being used by another plugin before uninstalling it.
if(isset($plug['plugin_path']))
{
if ($plugin->isUsedByAnotherPlugin($plug['plugin_path']))
{
$this->action = 'installed'; // Render plugin list.
return;
}
}
$text = '';
//Uninstall Plugin
if ($plug['plugin_installflag'] == TRUE )