]> git.mxchange.org Git - friendica.git/commitdiff
forumlist: dbupdate - fix - delete hooks and addon entry manually
authorrabuzarus <>
Thu, 12 Nov 2015 23:16:39 +0000 (00:16 +0100)
committerrabuzarus <>
Thu, 12 Nov 2015 23:16:39 +0000 (00:16 +0100)
update.php

index 8abad1629ac7fbcf06d6fdba7b131c3680e507c3..caa167617cd7abf9a2f9c3cf8808484c69880f54 100644 (file)
@@ -1677,7 +1677,10 @@ function update_1190() {
                        $idx = array_search($plugin, $plugins_arr);
                        if ($idx !== false){
                                unset($plugins_arr[$idx]);
-                               uninstall_plugin($plugin);
+                               //delete forumlist manually from addon and hook table 
+                               // since uninstall_plugin() don't work here
+                               q("DELETE FROM `addon` WHERE `name` = 'forumlist' ");
+                               q("DELETE FROM `hook` WHERE `file` = 'addon/forumlist/forumlist.php' ");
                                set_config('system','addon', implode(", ",$plugins_arr));
                        }
                }