Add option to update catalog on new posts as well as new threads
This commit is contained in:
parent
9773416553
commit
f8837ad60c
@ -38,5 +38,13 @@
|
|||||||
'comment' => '(eg. "catalog.css")'
|
'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
|
// Unique function name for building everything
|
||||||
$theme['build_function'] = 'catalog_build';
|
$theme['build_function'] = 'catalog_build';
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
$b = new Catalog();
|
$b = new Catalog();
|
||||||
$b->build($settings, $board);
|
$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 = new Catalog();
|
||||||
$b->build($settings, $board);
|
$b->build($settings, $board);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user