Browse Source

forumlist: dbupdate - fix - delete hooks and addon entry manually

tags/3.4.3
rabuzarus 3 years ago
parent
commit
e239f0a82e
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      update.php

+ 4
- 1
update.php View File

@@ -1677,7 +1677,10 @@ function update_1190() {
1677 1677
 			$idx = array_search($plugin, $plugins_arr);
1678 1678
 			if ($idx !== false){
1679 1679
 				unset($plugins_arr[$idx]);
1680
-				uninstall_plugin($plugin);
1680
+				//delete forumlist manually from addon and hook table 
1681
+				// since uninstall_plugin() don't work here
1682
+				q("DELETE FROM `addon` WHERE `name` = 'forumlist' ");
1683
+				q("DELETE FROM `hook` WHERE `file` = 'addon/forumlist/forumlist.php' ");
1681 1684
 				set_config('system','addon', implode(", ",$plugins_arr));
1682 1685
 			}
1683 1686
 		}

Loading…
Cancel
Save