Clear hook list on configuration reload (#2463)

This commit is contained in:
Maxime Besson 2021-02-15 15:13:53 +01:00
parent 78e71886d1
commit 31d0f26174

View File

@ -127,6 +127,7 @@ sub init {
$self->loadedModules( {} );
$self->afterSub( {} );
$self->aroundSub( {} );
$self->hook( {} );
# Insert `reloadConf` in handler reload stack
Lemonldap::NG::Handler::Main->onReload( $self, 'reloadConf' );
@ -213,6 +214,7 @@ sub reloadConf {
$self->afterSub( {} );
$self->aroundSub( {} );
$self->spRules( {} );
$self->hook( {} );
# Load conf in portal object
foreach my $key ( keys %$conf ) {