From 07b825c6d2abd3312747fafe49c0a1d3011242ae Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Tue, 13 Aug 2013 21:53:23 +1000 Subject: [PATCH] Don't create anti-bot stuff in buildThread() when asked to return HTML as a string. --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 848d9204..085d911f 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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']) ));