diff options
| author | czaks <marcin@6irc.net> | 2013-08-18 13:16:31 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-08-18 13:16:31 -0400 |
| commit | da1b7d087e55019b064e4dff0498ae0aa8a64418 (patch) | |
| tree | cf92758fac657dee32485d34353653953b05b9a6 /templates/themes | |
| parent | f6c25382b9708eff88a575ba199a645fc3dac420 (diff) | |
| parent | f8837ad60cac5aa7ec1457819986822d14661681 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
install.php
Diffstat (limited to 'templates/themes')
| -rw-r--r-- | templates/themes/catalog/info.php | 8 | ||||
| -rw-r--r-- | templates/themes/catalog/theme.php | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/templates/themes/catalog/info.php b/templates/themes/catalog/info.php index 1b9831ae..c68c9e09 100644 --- a/templates/themes/catalog/info.php +++ b/templates/themes/catalog/info.php @@ -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'; diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 4e2d40db..96550683 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -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); } |
