diff options
author | M.Dent <dentm42@dm42.net> | 2018-04-07 23:41:22 -0400 |
---|---|---|
committer | M.Dent <dentm42@dm42.net> | 2018-04-07 23:41:22 -0400 |
commit | ff77f14f2fb628a2192997052cc5813c421de2f7 (patch) | |
tree | 7aa773ef137fbcd4ef2f5037bfa673ddfb24f4f6 /include/plugin.php | |
parent | a0cba6564f5b42c0882ef1c6837677544d1ffb9f (diff) | |
download | volse-hubzilla-ff77f14f2fb628a2192997052cc5813c421de2f7.tar.gz volse-hubzilla-ff77f14f2fb628a2192997052cc5813c421de2f7.tar.bz2 volse-hubzilla-ff77f14f2fb628a2192997052cc5813c421de2f7.zip |
Remove remove plugin from \App::[] on uninstall
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-x | include/plugin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/plugin.php b/include/plugin.php index 2084f9107..4545e1e8d 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -20,7 +20,10 @@ function handleerrors_plugin($plugin,$notice,$log,$uninstall=false){ } 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)); } } |