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:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user