ajout log

This commit is contained in:
Christophe 2020-10-19 16:58:02 +02:00
parent fd9b509f28
commit a20213fae8

View file

@ -133,6 +133,9 @@ function blocklog_creer_blockchaine($chaine, $objet){
'objet='.sql_quote($objet) 'objet='.sql_quote($objet)
); );
$blockchaine = sql_getfetsel('blockchaine', 'spip_blocklogs', $where,'', 'id_blocklog DESC', '1'); $blockchaine = sql_getfetsel('blockchaine', 'spip_blocklogs', $where,'', 'id_blocklog DESC', '1');
spip_log("objet = $objet", 'blockchaine_chaine');
spip_log($blockchaine, 'blockchaine_chaine');
spip_log("-----------", 'blockchaine_chaine');
$blockchaine .= $chaine; $blockchaine .= $chaine;
$blockchaine = hash(_BLOCKLOG_ALGO, $blockchaine); $blockchaine = hash(_BLOCKLOG_ALGO, $blockchaine);