]> git.mxchange.org Git - friendica-addons.git/commitdiff
Restored Hook::register and added Hook::add
authornupplaPhil <admin@philipp.info>
Mon, 23 Dec 2019 00:36:32 +0000 (01:36 +0100)
committernupplaPhil <admin@philipp.info>
Mon, 23 Dec 2019 00:36:32 +0000 (01:36 +0100)
advancedcontentfilter/advancedcontentfilter.php

index a37f16fd61a7e5af2024a096627c4b2843a66457..af8bf9deeb75853233d045ef0bdc36c023b5897c 100644 (file)
@@ -56,10 +56,11 @@ require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'a
 
 function advancedcontentfilter_install(App $a)
 {
-       Hook::add('dbstructure_definition'          , __FILE__, 'advancedcontentfilter_dbstructure_definition');
+       Hook::register('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');
 
+       Hook::add('dbstructure_definition'          , __FILE__, 'advancedcontentfilter_dbstructure_definition');
        DBStructure::update($a->getBasePath(), false, true);
 
        Logger::log("installed advancedcontentfilter");
@@ -67,6 +68,7 @@ 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');
 }