Add overboard catalog to the rebuild-all action
This commit is contained in:
parent
1251fa01e7
commit
4ee8f9349a
|
@ -17,7 +17,7 @@
|
|||
// - post-thread (a thread has been made)
|
||||
if ($action === 'all') {
|
||||
foreach ($boards as $board) {
|
||||
$b = new Catalog($settings);
|
||||
//$b = new Catalog($settings);
|
||||
|
||||
$action = generation_strategy("sb_catalog", array($board));
|
||||
if ($action == 'delete') {
|
||||
|
@ -29,6 +29,17 @@
|
|||
$b->build($settings, $board);
|
||||
}
|
||||
}
|
||||
if($settings['has_overboard']) {
|
||||
$board = $settings['overboard_location'];
|
||||
$action = generation_strategy("sb_catalog", array($board));
|
||||
if ($action == 'delete') {
|
||||
file_unlink($config['dir']['home'] . $board . '/catalog.html');
|
||||
file_unlink($config['dir']['home'] . $board . '/index.rss');
|
||||
}
|
||||
elseif ($action == 'rebuild') {
|
||||
$b->buildOverboardCatalog($settings, $boards);
|
||||
}
|
||||
}
|
||||
} elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete')
|
||||
|| $action == 'sticky' || ($action == 'lock' && in_array($board, $boards))) {
|
||||
$b = new Catalog($settings);
|
||||
|
@ -339,7 +350,6 @@
|
|||
* Build and save the HTML of the catalog for the overboard
|
||||
*/
|
||||
public function buildOverboardCatalog($settings, $board_names) {
|
||||
global $config;
|
||||
$board_name = $settings['overboard_location'];
|
||||
|
||||
if (array_key_exists($board_name, $this->threadsCache)) {
|
||||
|
|
Loading…
Reference in New Issue