Add option to update catalog on new posts as well as new threads
This commit is contained in:
parent
946c49ac5a
commit
80ade5da1f
@ -38,5 +38,13 @@
|
||||
'comment' => '(eg. "catalog.css")'
|
||||
);
|
||||
|
||||
$theme['config'][] = Array(
|
||||
'title' => 'Update on new posts',
|
||||
'name' => 'update_on_posts',
|
||||
'type' => 'checkbox',
|
||||
'default' => false,
|
||||
'comment' => 'Without this checked, the catalog only updates on new threads.'
|
||||
);
|
||||
|
||||
// Unique function name for building everything
|
||||
$theme['build_function'] = 'catalog_build';
|
||||
|
@ -20,7 +20,7 @@
|
||||
$b = new Catalog();
|
||||
$b->build($settings, $board);
|
||||
}
|
||||
} elseif ($action == 'post-thread' && in_array($board, $boards)) {
|
||||
} elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') && in_array($board, $boards)) {
|
||||
$b = new Catalog();
|
||||
$b->build($settings, $board);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user