summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-13 21:53:23 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-13 21:53:23 +1000
commit07b825c6d2abd3312747fafe49c0a1d3011242ae (patch)
tree2ac8e05bbec985190128d63df7b3e5441864eb37
parentc6e629bf89b2b625f2f84ad73620f5a82b7a207e (diff)
Don't create anti-bot stuff in buildThread() when asked to return HTML as a string.
-rw-r--r--inc/functions.php2
1 files changed, 1 insertions, 1 deletions
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'])
));