amelioration log de debug
This commit is contained in:
parent
f70ed462fb
commit
4d39ee467c
1 changed files with 7 additions and 0 deletions
|
@ -37,17 +37,24 @@ function inc_blocklog_dist($objet, $id_objet = 0, $num = 0, $chaine = '') {
|
|||
$chaine .= "|". date_timestamp_get($date);
|
||||
$chaine = hash(_BACKLOG_ALGO, $chaine);
|
||||
|
||||
|
||||
$blockchaine = sql_getfetsel('blockchaine', 'spip_blocklogs',1,'', 'id_blocklog DESC', '1');
|
||||
|
||||
$blockchaine .= "|" . $chaine;
|
||||
$blockchaine = hash(_BACKLOG_ALGO, $blockchaine);
|
||||
|
||||
|
||||
$set = array (
|
||||
'blockchaine' => $blockchaine,
|
||||
'chaine' => $chaine,
|
||||
'num' => intval($num)
|
||||
);
|
||||
|
||||
if (defined('_DEBUG_BLOCKLOG')) {
|
||||
spip_log($set, 'blocklog');
|
||||
spip_log('================', 'blocklog');
|
||||
}
|
||||
|
||||
include_spip('action/editer_objet');
|
||||
$id_blocklog = objet_inserer("blocklog");
|
||||
objet_modifier("blocklog", $id_blocklog, $set);
|
||||
|
|
Loading…
Add table
Reference in a new issue