ajout une constante qui permet de ne pas afficher la blockchaine, à utiliser pendans le debug
This commit is contained in:
parent
405332fd85
commit
e76e626eea
1 changed files with 4 additions and 2 deletions
|
@ -38,9 +38,11 @@ function afficher_blocklog($texte, $id_dossier, $objet){
|
||||||
$objet = trim($objet);
|
$objet = trim($objet);
|
||||||
|
|
||||||
$blockchaine = '';
|
$blockchaine = '';
|
||||||
|
if (!defined('_BLOCKLOG_CACHER_PDF') or _BLOCKLOG_CACHER_PDF !== true){
|
||||||
if (intval($id_dossier) and $objet) {
|
if (intval($id_dossier) and $objet) {
|
||||||
$blockchaine = trouver_blocklog($id_dossier, $objet);
|
$blockchaine = trouver_blocklog($id_dossier, $objet);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$texte = str_replace('@@blockchaine@@', $blockchaine, $texte);
|
$texte = str_replace('@@blockchaine@@', $blockchaine, $texte);
|
||||||
$texte = str_replace('@@blocklog@@', $blockchaine, $texte);
|
$texte = str_replace('@@blocklog@@', $blockchaine, $texte);
|
||||||
|
|
Loading…
Add table
Reference in a new issue