From 6f905fca2c755c01e06c587993a65ab5698717e8 Mon Sep 17 00:00:00 2001 From: Master Splinter Date: Sat, 23 Sep 2017 23:26:44 +0300 Subject: [PATCH] Update post.php It was logged as 0.html when link_for is called with $post --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index e6310e16..02850d4d 100644 --- a/post.php +++ b/post.php @@ -332,7 +332,7 @@ if (isset($_POST['delete'])) { if ($config['syslog']) _syslog(LOG_INFO, 'Reported post: ' . - '/' . $board['dir'] . $config['dir']['res'] . link_for($post) . ($thread['thread'] ? '#' . $id : '') . + '/' . $board['dir'] . $config['dir']['res'] . link_for($thread) . ($thread['thread'] ? '#' . $id : '') . ' for "' . $reason . '"' ); $query = prepare("INSERT INTO ``reports`` VALUES (NULL, :time, :ip, :board, :post, :reason)");