diff --git a/install/steps/7-finish.php b/install/steps/7-finish.php index e15d2128..0d95863a 100644 --- a/install/steps/7-finish.php +++ b/install/steps/7-finish.php @@ -198,4 +198,4 @@ if(file_exists(CACHE . 'install.txt')) { unlink(CACHE . 'install.txt'); } -$hooks->trigger(HOOK_INSTALL_FINISH); +$hooks->trigger(HOOK_INSTALL_FINISH_END); diff --git a/install/tools/7-finish.php b/install/tools/7-finish.php index 0715ce01..37914a5f 100644 --- a/install/tools/7-finish.php +++ b/install/tools/7-finish.php @@ -77,6 +77,8 @@ if(ModelsFAQ::count() == 0) { ]); } +$hooks->trigger(HOOK_INSTALL_FINISH); + $db->setClearCacheAfter(true); $locale['step_finish_desc'] = str_replace('$ADMIN_PANEL$', generateLink(str_replace('tools/', '',ADMIN_URL), $locale['step_finish_admin_panel'], true), $locale['step_finish_desc']); diff --git a/system/src/global.php b/system/src/global.php index 5a2a7d99..e7185cf5 100644 --- a/system/src/global.php +++ b/system/src/global.php @@ -75,6 +75,7 @@ define('HOOK_GUILDS_AFTER_INVITED_CHARACTERS', ++$i); define('HOOK_TWIG', ++$i); define('HOOK_CACHE_CLEAR', ++$i); define('HOOK_INSTALL_FINISH', ++$i); +define('HOOK_INSTALL_FINISH_END', ++$i); const HOOK_FIRST = HOOK_STARTUP; define('HOOK_LAST', $i);