Don't create anti-bot stuff in buildThread() when asked to return HTML as a string.

This commit is contained in:
Michael Foster 2013-08-13 21:53:23 +10:00
parent c6e629bf89
commit 07b825c6d2

View File

@ -1755,7 +1755,7 @@ function buildThread($id, $return = false, $mod = false) {
'config' => $config,
'id' => $id,
'mod' => $mod,
'antibot' => $mod ? false : create_antibot($board['uri'], $id),
'antibot' => $mod || $return ? false : create_antibot($board['uri'], $id),
'boardlist' => createBoardlist($mod),
'return' => ($mod ? '?' . $board['url'] . $config['file_index'] : $config['root'] . $board['dir'] . $config['file_index'])
));