]> git.mxchange.org Git - friendica.git/commitdiff
Use the uninstall function
authorMichael <heluecht@pirati.ca>
Tue, 10 Mar 2020 20:00:44 +0000 (20:00 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 10 Mar 2020 20:00:44 +0000 (20:00 +0000)
update.php

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