Browse Source

Add option to update catalog on new posts as well as new threads

pull/40/head
ctrlcctrlv 11 years ago
committed by Michael Foster
parent
commit
f8837ad60c
  1. 8
      templates/themes/catalog/info.php
  2. 2
      templates/themes/catalog/theme.php

8
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';

2
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);
}

Loading…
Cancel
Save