Browse Source

Protéger l'appel aux variables hapy_*_hook dans les templates également.

Ref #12701
Benjamin Bohard 3 years ago
parent
commit
7310e1afcd
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tmpl/oned.conf

+ 4
- 0
tmpl/oned.conf View File

@@ -602,6 +602,7 @@ VM_HOOK = [
602 602
 #*******************************************************************************
603 603
 # VM
604 604
 #*******************************************************************************
605
+ %if %%hapy_vm_hooks == 'oui'
605 606
   %for %%hook in %%hapy_vm_hook
606 607
 VM_HOOK = [
607 608
     name = "%%hook",
@@ -619,9 +620,11 @@ VM_HOOK = [
619 620
     %end if
620 621
 ]
621 622
   %end for
623
+ %end if
622 624
 #*******************************************************************************
623 625
 # USER
624 626
 #*******************************************************************************
627
+ %if %%hapy_user_hooks == 'oui'
625 628
   %for %%hook in %%hapy_user_hook
626 629
 USER_HOOK = [
627 630
     name = "%%hook",
@@ -630,6 +633,7 @@ USER_HOOK = [
630 633
     arguments = "%%hook.hapy_user_hook_arguments"
631 634
 ]
632 635
   %end for
636
+ %end if
633 637
 %end if
634 638
 
635 639
 HM_MAD = [