aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-04-07 23:41:22 -0400
committerM.Dent <dentm42@dm42.net>2018-04-07 23:41:22 -0400
commitff77f14f2fb628a2192997052cc5813c421de2f7 (patch)
tree7aa773ef137fbcd4ef2f5037bfa673ddfb24f4f6 /include
parenta0cba6564f5b42c0882ef1c6837677544d1ffb9f (diff)
downloadvolse-hubzilla-ff77f14f2fb628a2192997052cc5813c421de2f7.tar.gz
volse-hubzilla-ff77f14f2fb628a2192997052cc5813c421de2f7.tar.bz2
volse-hubzilla-ff77f14f2fb628a2192997052cc5813c421de2f7.zip
Remove remove plugin from \App::[] on uninstall
Diffstat (limited to 'include')
-rwxr-xr-xinclude/plugin.php5
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));
}
}