1
0

php 8 compat fixes for receiving trackbacks

This commit is contained in:
onli
2021-05-25 23:13:51 +02:00
parent 42f93ee27a
commit 730f4c080a
4 changed files with 6 additions and 5 deletions

View File

@ -351,7 +351,7 @@ function add_trackback($id, $title, $url, $name, $excerpt) {
// Decode HTML Entities
$excerpt = trackback_body_strip($excerpt);
if ($tb_logging) {
if ($GLOBALS['tb_logging']) {
$fp = fopen('trackback2.log', 'a');
fwrite($fp, '[' . date('d.m.Y H:i') . '] Trackback body:' . $excerpt . "\n");
fclose($fp);