From: nupplaPhil Date: Sun, 22 Dec 2019 18:36:28 +0000 (+0100) Subject: Fix dbstructure update hook for advancedcontentfilter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4f4b9f26c1364e7b8f5b1e7332398eae280d2ab4;p=friendica-addons.git Fix dbstructure update hook for advancedcontentfilter --- diff --git a/advancedcontentfilter/advancedcontentfilter.php b/advancedcontentfilter/advancedcontentfilter.php index 1b54df49..81097648 100644 --- a/advancedcontentfilter/advancedcontentfilter.php +++ b/advancedcontentfilter/advancedcontentfilter.php @@ -56,7 +56,7 @@ require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'a function advancedcontentfilter_install(App $a) { - Hook::register('dbstructure_definition' , __FILE__, 'advancedcontentfilter_dbstructure_definition'); + Hook::add('dbstructure_definition' , __FILE__, 'advancedcontentfilter_dbstructure_definition'); Hook::register('prepare_body_content_filter', __FILE__, 'advancedcontentfilter_prepare_body_content_filter'); Hook::register('addon_settings' , __FILE__, 'advancedcontentfilter_addon_settings'); @@ -67,7 +67,6 @@ function advancedcontentfilter_install(App $a) function advancedcontentfilter_uninstall() { - Hook::unregister('dbstructure_definition' , __FILE__, 'advancedcontentfilter_dbstructure_definition'); Hook::unregister('prepare_body_content_filter', __FILE__, 'advancedcontentfilter_prepare_body_content_filter'); Hook::unregister('addon_settings' , __FILE__, 'advancedcontentfilter_addon_settings'); }