From: Michael <heluecht@pirati.ca>
Date: Tue, 10 Mar 2020 20:00:44 +0000 (+0000)
Subject: Use the uninstall function
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a0f0558fec963b7e9a17d9d7a288559c73dd5fa4;p=friendica.git

Use the uninstall function
---

diff --git a/update.php b/update.php
index 107368ea0f..82b184c9f4 100644
--- a/update.php
+++ b/update.php
@@ -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