summaryrefslogtreecommitdiff
path: root/templates/themes/ukko/theme.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-10-08 23:23:59 +0200
committerczaks <marcin@6irc.net>2014-10-08 23:23:59 +0200
commit9b3fa77719642acd13a2ae6f29087dffcb261f4d (patch)
tree6ea26048a0f540c29d28041e1191920d5485f346 /templates/themes/ukko/theme.php
parent906764a62f6fbc263d8b1d21957531edb6481e59 (diff)
new banlist implementation; also includes a public banlist
Diffstat (limited to 'templates/themes/ukko/theme.php')
-rw-r--r--templates/themes/ukko/theme.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/themes/ukko/theme.php b/templates/themes/ukko/theme.php
index b2624ed7..058fc77b 100644
--- a/templates/themes/ukko/theme.php
+++ b/templates/themes/ukko/theme.php
@@ -4,7 +4,11 @@
function ukko_build($action, $settings) {
$ukko = new ukko();
$ukko->settings = $settings;
-
+
+ if (! ($action == 'all' || $action == 'post' || $action == 'post-thread' || $action == 'post-delete')) {
+ return;
+ }
+
file_write($settings['uri'] . '/index.html', $ukko->build());
file_write($settings['uri'] . '/ukko.js', Element('themes/ukko/ukko.js', array()));
}