Add HOOK_TWIG. Also moved Hooks loading to init.php

For adding twig functions & filters by plugins
This commit is contained in:
slawkens
2023-09-16 11:07:38 +02:00
parent 0ac0f4e7a8
commit b3991a8e78
5 changed files with 8 additions and 9 deletions

View File

@@ -124,3 +124,5 @@ $filter = new TwigFilter('urlencode', function ($s) {
$twig->addFilter($filter);
unset($function, $filter);
$hooks->trigger(HOOK_TWIG, ['twig' => $twig, 'twig_loader' => $twig_loader]);