ajout une constante qui permet de ne pas afficher la blockchaine, à utiliser pendans le debug

This commit is contained in:
Christophe 2019-12-26 14:55:02 +01:00
parent 405332fd85
commit e76e626eea

View file

@ -38,8 +38,10 @@ function afficher_blocklog($texte, $id_dossier, $objet){
$objet = trim($objet); $objet = trim($objet);
$blockchaine = ''; $blockchaine = '';
if (intval($id_dossier) and $objet) { if (!defined('_BLOCKLOG_CACHER_PDF') or _BLOCKLOG_CACHER_PDF !== true){
$blockchaine = trouver_blocklog($id_dossier, $objet); if (intval($id_dossier) and $objet) {
$blockchaine = trouver_blocklog($id_dossier, $objet);
}
} }
$texte = str_replace('@@blockchaine@@', $blockchaine, $texte); $texte = str_replace('@@blockchaine@@', $blockchaine, $texte);