summaryrefslogtreecommitdiff
path: root/templates/themes/ukko/theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/themes/ukko/theme.php')
-rw-r--r--templates/themes/ukko/theme.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/themes/ukko/theme.php b/templates/themes/ukko/theme.php
index 6faf7139..d08b6769 100644
--- a/templates/themes/ukko/theme.php
+++ b/templates/themes/ukko/theme.php
@@ -139,6 +139,12 @@
$jsonFilename = $board['dir'] . 'threads.json';
file_write($jsonFilename, $json);
}
+ $antibot = null;
+ if (!$antibot) {
+ $antibot = create_antibot($board['uri']);
+ }
+ $antibot->reset();
+
return Element('index.html', array(
'config' => $config,
'board' => $board,
@@ -146,7 +152,8 @@
'body' => $body,
'mod' => $mod,
'boardlist' => createBoardlist($mod),
- 'boards' => $boardsforukko )
+ 'boards' => $boardsforukko,
+ 'antibot' => $antibot )
);
}