Implemented fix for Invalid link_for call referencing deleted thread when op is deleted #98

This commit is contained in:
Benjamin Southall 2017-04-28 15:08:02 +09:00
parent 040803bbc2
commit 9d5e98a9a3

View file

@ -254,7 +254,7 @@ if (isset($_POST['delete'])) {
}
_syslog(LOG_INFO, 'Deleted post: ' .
'/' . $board['dir'] . $config['dir']['res'] . link_for($post) . ($post['thread'] ? '#' . $id : '')
'/' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $post['thread'] ? $post['thread'] : $id) . ($post['thread'] ? '#' . $id : '')
);
}
}