summaryrefslogtreecommitdiff
path: root/templates/themes/recent
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-07-18 15:19:03 -0400
committerczaks <marcin@6irc.net>2013-07-18 15:19:03 -0400
commitfa66b96240e9fdf7b179e604833d1c59702f9c39 (patch)
treec7640caebe4294b1bd0eff54ce418fe0a251104c /templates/themes/recent
parent8c72c8a43232f137256fa170c889ba330ebba7af (diff)
parente4bd9a6886af2a812ccc909d8ad957df1bdc5d2b (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: post.php
Diffstat (limited to 'templates/themes/recent')
-rw-r--r--templates/themes/recent/theme.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php
index b436ab0f..75907e77 100644
--- a/templates/themes/recent/theme.php
+++ b/templates/themes/recent/theme.php
@@ -1,12 +1,13 @@
<?php
require 'info.php';
- function recentposts_build($action, $settings) {
+ function recentposts_build($action, $settings, $board) {
// Possible values for $action:
// - all (rebuild everything, initialization)
// - news (news has been updated)
// - boards (board list changed)
// - post (a post has been made)
+ // - post-thread (a thread has been made)
$b = new RecentPosts();
$b->build($action, $settings);
@@ -23,7 +24,7 @@
$this->excluded = explode(' ', $settings['exclude']);
- if ($action == 'all' || $action == 'post')
+ if ($action == 'all' || $action == 'post' || $action == 'post-thread')
file_write($config['dir']['home'] . $settings['html'], $this->homepage($settings));
}