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 501678d6bb
commit b91432727c

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 : '')
);
}
}