]> git.mxchange.org Git - friendica-addons.git/commitdiff
4) Adding Factories to other entrypoints
authorPhilipp Holzer <admin@philipp.info>
Sun, 3 Feb 2019 21:46:49 +0000 (22:46 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sun, 3 Feb 2019 21:46:49 +0000 (22:46 +0100)
advancedcontentfilter/advancedcontentfilter.php

index 6479fe8e98f7bd6f2da13cdfb60bb66db7f5aa62..8602613044b2502a760a7ac090aaa01320960aac 100644 (file)
@@ -58,13 +58,13 @@ require_once 'include/dba.php';
 
 require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
 
-function advancedcontentfilter_install()
+function advancedcontentfilter_install(App $a)
 {
        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');
 
-       DBStructure::update(false, true);
+       DBStructure::update($a->getBasePath(), false, true);
 
        Logger::log("installed advancedcontentfilter");
 }