Themes edit: Split "post" into two seperate actions: "post" (replies) and "post-thread". And add a $board variable.

This commit is contained in:
Michael Foster 2013-07-18 12:06:26 -04:00
parent de4b5b3962
commit e4bd9a6886
9 changed files with 44 additions and 39 deletions

View file

@ -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));
}