From a73fb1003ee3f812cf182d1834d65f08e6f60d1f Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 2 Feb 2025 16:17:24 +0100 Subject: [PATCH] Fix HOOK_STARTUP location --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 9d30339f..0a42deed 100644 --- a/index.php +++ b/index.php @@ -76,6 +76,8 @@ require_once SYSTEM . 'status.php'; $twig->addGlobal('config', $config); $twig->addGlobal('status', $status); +$hooks->trigger(HOOK_STARTUP); + // backward support for gesior if(setting('core.backward_support')) { define('INITIALIZED', true); @@ -117,8 +119,6 @@ if(setting('core.backward_support')) { require_once SYSTEM . 'router.php'; -$hooks->trigger(HOOK_STARTUP); - // anonymous usage statistics // sent only when user agrees if(setting('core.anonymous_usage_statistics')) {