correction deprecated sur l'appel arg fonction
This commit is contained in:
parent
9fac6e1c66
commit
a0349698f0
1 changed files with 3 additions and 3 deletions
|
@ -35,13 +35,13 @@ function trouver_blocklog($id_objet, $objet, $all = false){
|
|||
}
|
||||
|
||||
function blockchaine_sur_pdf(){
|
||||
if (!defined('_BLOCKLOG_CACHER_PDF') or _BLOCKLOG_CACHER_PDF !== true){
|
||||
if (!defined('_BLOCKLOG_CACHER_PDF') or (defined('_BLOCKLOG_CACHER_PDF') and _BLOCKLOG_CACHER_PDF !== true)){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function afficher_blocklog($texte = '', $id_dossier, $objet, $type = 'chaine'){
|
||||
function afficher_blocklog($texte = '', $id_dossier = 0, $objet = '', $type = 'chaine'){
|
||||
$objet = trim($objet);
|
||||
|
||||
$blockchaine = '<span class="affichage_blockchaine">';
|
||||
|
@ -50,7 +50,7 @@ function afficher_blocklog($texte = '', $id_dossier, $objet, $type = 'chaine'){
|
|||
$img = '<img class="icone_blockchaine" src="'.$img.'" style="height:1em;width: 1em;">';
|
||||
$img .= " ";
|
||||
}
|
||||
if (!defined('_BLOCKLOG_CACHER_PDF') or _BLOCKLOG_CACHER_PDF !== true){
|
||||
if (!defined('_BLOCKLOG_CACHER_PDF') or (defined('_BLOCKLOG_CACHER_PDF') and _BLOCKLOG_CACHER_PDF !== true)){
|
||||
if (intval($id_dossier) and $objet) {
|
||||
$blockchaine .= $img;
|
||||
$blockchaine .= trouver_blocklog($id_dossier, $objet, true)[$type];
|
||||
|
|
Loading…
Add table
Reference in a new issue