Load hooks before twig, add new hooks: HOOK_TWIG + HOOK_INIT

This commit is contained in:
slawkens
2025-05-16 07:42:50 +02:00
parent 26b2c472cc
commit 5726c9fa94
6 changed files with 10 additions and 10 deletions

View File

@@ -124,6 +124,12 @@ require_once SYSTEM . 'libs/pot/OTS.php';
$ots = POT::getInstance();
require_once SYSTEM . 'database.php';
// event system
require_once SYSTEM . 'hooks.php';
$hooks = new Hooks();
$hooks->load();
$hooks->trigger(HOOK_INIT);
// twig
require_once SYSTEM . 'twig.php';