Remove remove plugin from \App::[] on uninstall
This commit is contained in:
parent
a0cba6564f
commit
ff77f14f2f
@ -20,7 +20,10 @@ function handleerrors_plugin($plugin,$notice,$log,$uninstall=false){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($uninstall) {
|
if ($uninstall) {
|
||||||
plugin_uninstall($plugin);
|
$idx = array_search($plugin, \App::$plugins);
|
||||||
|
unset(\App::$plugins[$idx]);
|
||||||
|
uninstall_plugin($plugin);
|
||||||
|
set_config("system","addon", implode(", ",\App::$plugins));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user