1
0
Fork 0

Use the uninstall function

This commit is contained in:
Michael 2020-03-10 20:00:44 +00:00
parent d4480ae4be
commit a0f0558fec

View file

@ -92,10 +92,7 @@ function update_1191()
DI::config()->set('system', 'maintenance', 1); DI::config()->set('system', 'maintenance', 1);
if (Addon::isEnabled('forumlist')) { if (Addon::isEnabled('forumlist')) {
//delete forumlist manually from addon and hook table Addon::uninstall('forumlist');
// since Addon::uninstall() don't work here
DBA::delete('addon', ['name' => 'forumlist']);
DBA::delete('hook', ['file' => 'addon/forumlist/forumlist.php']);
} }
// select old formlist addon entries // select old formlist addon entries