Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Téo GODDET
lemonldap-ng
Commits
31d0f261
Commit
31d0f261
authored
Feb 15, 2021
by
Maxime Besson
Browse files
Clear hook list on configuration reload (#2463)
parent
78e71886
Changes
1
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Init.pm
View file @
31d0f261
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment