lib/forum/postmodify.class.php(红色新增代码为获取帖子pid)
function editlog() {
if ($this->post->uid != $this->atcdb['authorid'] && ($this->post->isGM || pwRights($this->post->isBM, 'deltpcs'))) {
/**
* 管理员编辑帖子的安全日记
*/
global $timestamp, $onlineip;
require_once (R_P . 'require/writelog.php');
$log = array(
'type' => 'edit',
'username1' => $this->atcdb['author'],
'username2' => $this->post->username,
'field1' => $this->forum->fid,
'field2' => '',
'field3' => '',
'descrip' => 'edit_descrip',
'timestamp' => $timestamp,
'ip' => $onlineip,
'tid' => $this->tid,
'pid' => $this->pid,//2021.8.25
'forum' => $this->forum->name,
'subject' => substrs($this->data['title'], 28),
'reason' => 'edit article'
);
writelog($log);
}
}
}