From: Hypolite Petovan Date: Wed, 6 Feb 2019 15:52:02 +0000 (-0500) Subject: Merge pull request #803 from nupplaphil/config_refact X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37dd8a938bb947d8b8f463dd58d377b40654bba6;p=friendica-addons.git Merge pull request #803 from nupplaphil/config_refact Config Refactoring --- 37dd8a938bb947d8b8f463dd58d377b40654bba6 diff --cc advancedcontentfilter/advancedcontentfilter.php index a22436ca,86026130..dbbfb2e2 --- a/advancedcontentfilter/advancedcontentfilter.php +++ b/advancedcontentfilter/advancedcontentfilter.php @@@ -52,9 -52,13 +52,9 @@@ use Psr\Http\Message\ResponseInterface use Psr\Http\Message\ServerRequestInterface; use Symfony\Component\ExpressionLanguage; -require_once 'boot.php'; -require_once 'include/conversation.php'; -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');