On veut pouvoir utiliser les deux fonctions de surcharge
1. la general 2. la spé du slug
This commit is contained in:
parent
c45e989b2a
commit
dc27fa0d9b
1 changed files with 7 additions and 4 deletions
|
@ -66,7 +66,8 @@ function formulaires_gamumail_charger_dist($slug, $auteur = 0, $Tclient = [], $T
|
||||||
|
|
||||||
if ($f = charger_fonction('charger', 'gamumail', true)) {
|
if ($f = charger_fonction('charger', 'gamumail', true)) {
|
||||||
$valeurs = $f($valeurs, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
$valeurs = $f($valeurs, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
||||||
} else if ($f = charger_fonction($slug . '_charger', 'gamumail', true)) {
|
}
|
||||||
|
if ($f = charger_fonction($slug . '_charger', 'gamumail', true)) {
|
||||||
$valeurs = $f($valeurs, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
$valeurs = $f($valeurs, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +84,8 @@ function formulaires_gamumail_verifier_dist($slug, $auteur = 0, $Tclient = [], $
|
||||||
|
|
||||||
if ($f = charger_fonction('verifier', 'gamumail', true)) {
|
if ($f = charger_fonction('verifier', 'gamumail', true)) {
|
||||||
$erreurs = $f($erreurs, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
$erreurs = $f($erreurs, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
||||||
} else if ($f = charger_fonction($slug . '_verifier', 'gamumail', true)) {
|
}
|
||||||
|
if ($f = charger_fonction($slug . '_verifier', 'gamumail', true)) {
|
||||||
$erreurs = $f($erreurs, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
$erreurs = $f($erreurs, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +170,7 @@ function formulaires_gamumail_traiter_dist($slug, $auteur = 0, $Tclient = [], $T
|
||||||
|
|
||||||
if(find_in_path('gamumail/html_header.html')){
|
if(find_in_path('gamumail/html_header.html')){
|
||||||
$html_header = recuperer_fond('gamumail/html_header', $options);
|
$html_header = recuperer_fond('gamumail/html_header', $options);
|
||||||
}elseif (find_in_path($slug . '_html_header.html')) {
|
} elseif (find_in_path($slug . '_html_header.html')) {
|
||||||
$html_header = recuperer_fond('gamumail/'.$slug . '_html_header', $options);
|
$html_header = recuperer_fond('gamumail/'.$slug . '_html_header', $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,7 +193,8 @@ function formulaires_gamumail_traiter_dist($slug, $auteur = 0, $Tclient = [], $T
|
||||||
|
|
||||||
if ($f = charger_fonction('traiter', 'gamumail', true)) {
|
if ($f = charger_fonction('traiter', 'gamumail', true)) {
|
||||||
$corps = $f($corps, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
$corps = $f($corps, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
||||||
} elseif ($f = charger_fonction($slug . '_traiter', 'gamumail', true)) {
|
}
|
||||||
|
if ($f = charger_fonction($slug . '_traiter', 'gamumail', true)) {
|
||||||
$corps = $f($corps, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
$corps = $f($corps, $options, $slug, $auteur, $Tclient, $Tpdf, $redirect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue