allowed enabling multiple themes simultaneously

This commit is contained in:
Savetheinternet 2011-05-28 01:43:04 +10:00
parent bb67062cd5
commit d9b82cfe4f
5 changed files with 29 additions and 21 deletions

View file

@ -8,17 +8,17 @@
// - boards (board list changed)
// - post (a post has been made)
$b = new Basic();
$b = new RecentPosts();
$b->build($action, $settings);
}
// Wrap functions in a class so they don't interfere with normal Tinyboard operations
class Basic {
class RecentPosts {
public function build($action, $settings) {
global $config, $_theme;
if($action == 'all') {
copy($config['dir']['homepage'] . '/' . $_theme . '/recent.css', $config['dir']['home'] . 'recent.css');
//copy($config['dir']['homepage'] . '/' . $_theme . '/recent.css', $config['dir']['home'] . 'recent.css');
}
$this->excluded = explode(' ', $settings['exclude']);