forumlist: dbupdate - fix - delete hooks and addon entry manually
This commit is contained in:
parent
dd2ed42863
commit
e239f0a82e
1 changed files with 4 additions and 1 deletions
|
@ -1677,7 +1677,10 @@ function update_1190() {
|
||||||
$idx = array_search($plugin, $plugins_arr);
|
$idx = array_search($plugin, $plugins_arr);
|
||||||
if ($idx !== false){
|
if ($idx !== false){
|
||||||
unset($plugins_arr[$idx]);
|
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));
|
set_config('system','addon', implode(", ",$plugins_arr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue