Merge pull request #803 from nupplaphil/config_refact

Config Refactoring
This commit is contained in:
Hypolite Petovan 2019-02-06 10:52:02 -05:00 committed by GitHub
commit 37dd8a938b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 28 additions and 26 deletions

View file

@ -54,13 +54,13 @@ use Symfony\Component\ExpressionLanguage;
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");
}