Better place for INSTALL_FINISH hook

This commit is contained in:
slawkens 2024-05-31 19:21:37 +02:00
parent 44eff8092c
commit d3f03fa735
3 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -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']);

View File

@ -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);