diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-18 12:06:26 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-18 12:06:26 -0400 |
| commit | e4bd9a6886af2a812ccc909d8ad957df1bdc5d2b (patch) | |
| tree | 698630de8be70b1bf50fadef701c13109c1d5083 /templates/themes/recent/theme.php | |
| parent | de4b5b396246ee5c3cb8687cfef3647c844a3b54 (diff) | |
Themes edit: Split "post" into two seperate actions: "post" (replies) and "post-thread". And add a $board variable.
Diffstat (limited to 'templates/themes/recent/theme.php')
| -rw-r--r-- | templates/themes/recent/theme.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php index 986fac6a..1ebe58f6 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)); } |
