1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fixed undefined $pref variable. Check if plugin is being used by another plugin before uninstalling it.

This commit is contained in:
Lóna Lore
2016-06-29 20:48:00 +02:00
parent 58e3592fdc
commit d25fb0184d
3 changed files with 147 additions and 31 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 )