mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Clean components when removing plugin (server)
This commit is contained in:
parent
452d5d0b73
commit
d2710b2e66
@ -94,6 +94,12 @@ function plugins_delete_plugin(int $id_plugin)
|
|||||||
$result = $problem;
|
$result = $problem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove all components related to this plugin.
|
||||||
|
db_process_sql_delete(
|
||||||
|
'tnetwork_component',
|
||||||
|
[ 'id_plugin' => $id_plugin ]
|
||||||
|
);
|
||||||
|
|
||||||
if (is_metaconsole() === true && is_management_allowed() === true) {
|
if (is_metaconsole() === true && is_management_allowed() === true) {
|
||||||
$sc = new Synchronizer();
|
$sc = new Synchronizer();
|
||||||
$problems = $sc->apply(
|
$problems = $sc->apply(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user