on deplace la fonction de remplacement de @@blocklog@@ dans le plugin
This commit is contained in:
parent
bf088afa28
commit
f9aa495cd3
1 changed files with 12 additions and 0 deletions
|
@ -34,6 +34,18 @@ function trouver_blocklog($id_objet, $objet, $id = false){
|
|||
return $r['blockchaine'];
|
||||
}
|
||||
|
||||
function afficher_blocklog($texte, $id_dossier, $objet){
|
||||
$objet = trim($objet);
|
||||
|
||||
if (intval($id_dossier) and $objet) {
|
||||
$blockchaine = trouver_blocklog($id_dossier, $objet);
|
||||
|
||||
$texte = str_replace('@@blockchaine@@', $blockchaine, $texte);
|
||||
$texte = str_replace('@@blocklog@@', $blockchaine, $texte);
|
||||
}
|
||||
|
||||
return $texte;
|
||||
}
|
||||
|
||||
function blocklog_verifier_blockchaine($id_objet, $objet){
|
||||
if (intval($id_objet) and $objet) {
|
||||
|
|
Loading…
Add table
Reference in a new issue