mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LStemplate: fix & improve handling loop detection displaying fatal error
This commit is contained in:
parent
74df3d2f61
commit
2d27a7049f
4 changed files with 25 additions and 23 deletions
|
@ -429,6 +429,7 @@ class LStemplate extends LSlog_staticLoggerClass {
|
|||
}
|
||||
|
||||
try {
|
||||
self :: $last_displayed_template = $template;
|
||||
self :: assignCommonVars();
|
||||
self :: $_smarty -> display("ls:$template");
|
||||
}
|
||||
|
@ -478,7 +479,7 @@ class LStemplate extends LSlog_staticLoggerClass {
|
|||
}
|
||||
elseif (self :: $last_displayed_template == 'error.tpl') {
|
||||
// Detect & stop loop displaying error
|
||||
die(getFData(_('Loop detected displaying this error: %{error}.'), $error));
|
||||
die(getFData(_('<h1>Loop detected displaying this error:</h1><pre>%{error}</pre>'), $error));
|
||||
}
|
||||
else {
|
||||
self :: assign('pagetitle', _("A fatal error occured."));
|
||||
|
|
Binary file not shown.
|
@ -8,7 +8,7 @@ msgstr ""
|
|||
"Project-Id-Version: LdapSaisie\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: \n"
|
||||
"PO-Revision-Date: 2021-10-25 18:53+0200\n"
|
||||
"PO-Revision-Date: 2021-10-25 19:04+0200\n"
|
||||
"Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n"
|
||||
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
|
||||
"org>\n"
|
||||
|
@ -872,35 +872,36 @@ msgstr ""
|
|||
"LStemplate : Le fichier de template '%{tpl}' est maintenant déprécié. Merci "
|
||||
"de mettre à jour vos templates en vous référant à la documentation."
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:436
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:437
|
||||
msgid "Smarty - An exception occured displaying template '%{template}'"
|
||||
msgstr ""
|
||||
"Smarty - Un erreur est survenue en affichant le modèle de page '%{template}'."
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:456
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:457
|
||||
msgid "Smarty - An exception occured fetching template '%{template}'"
|
||||
msgstr "Smarty - Un erreur est survenue en générant le modèle '%{template}'."
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:471
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:485
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:472
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:486
|
||||
msgid "A fatal error occured. If problem persist, please contact support."
|
||||
msgstr ""
|
||||
"Une erreur irrécupérable est survenue. Si le problème persiste, merci de "
|
||||
"contacter le support."
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:481
|
||||
msgid "Loop detected displaying this error: %{error}."
|
||||
msgstr "Boucle détectée en affichant cette erreur : %{error}."
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:482
|
||||
msgid "<h1>Loop detected displaying this error:</h1><pre>%{error}</pre>"
|
||||
msgstr ""
|
||||
"<h1>Boucle détectée en affichant cette erreur :</h1><pre>%{error}</pre>"
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:484
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:485
|
||||
msgid "A fatal error occured."
|
||||
msgstr "Une erreur fatale est survenue."
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:684
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:685
|
||||
msgid "LStemplate : Template %{file} not found."
|
||||
msgstr "LStemplate : le template %{file} est introuvable."
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:687
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:688
|
||||
msgid ""
|
||||
"LStemplate : Fail to execute trigger %{callable} on event %{event} : is not "
|
||||
"callable."
|
||||
|
@ -908,7 +909,7 @@ msgstr ""
|
|||
"LStemplate : Échec d'exécution du déclencheur %{callable} lors de événement "
|
||||
"%{event} : il n'est pas un callable."
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:690
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:691
|
||||
msgid ""
|
||||
"LStemplate : Error during the execution of the trigger %{callable} on event "
|
||||
"%{event}."
|
||||
|
|
|
@ -755,38 +755,38 @@ msgid ""
|
|||
"upgrade documentation to adapt your templates."
|
||||
msgstr ""
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:436
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:437
|
||||
msgid "Smarty - An exception occured displaying template '%{template}'"
|
||||
msgstr ""
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:456
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:457
|
||||
msgid "Smarty - An exception occured fetching template '%{template}'"
|
||||
msgstr ""
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:471
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:485
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:472
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:486
|
||||
msgid "A fatal error occured. If problem persist, please contact support."
|
||||
msgstr ""
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:481
|
||||
msgid "Loop detected displaying this error: %{error}."
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:482
|
||||
msgid "<h1>Loop detected displaying this error:</h1><pre>%{error}</pre>"
|
||||
msgstr ""
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:484
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:485
|
||||
msgid "A fatal error occured."
|
||||
msgstr ""
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:684
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:685
|
||||
msgid "LStemplate : Template %{file} not found."
|
||||
msgstr ""
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:687
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:688
|
||||
msgid ""
|
||||
"LStemplate : Fail to execute trigger %{callable} on event %{event} : is not "
|
||||
"callable."
|
||||
msgstr ""
|
||||
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:690
|
||||
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:691
|
||||
msgid ""
|
||||
"LStemplate : Error during the execution of the trigger %{callable} on event "
|
||||
"%{event}."
|
||||
|
|
Loading…
Reference in a new issue