Browse Source

Added post-delete handling on themes that should use it.

pull/40/head
Dan Saunders 11 years ago
committed by Michael Foster
parent
commit
bb06593ef5
  1. 2
      templates/themes/catalog/theme.php
  2. 2
      templates/themes/recent/theme.php
  3. 2
      templates/themes/sitemap/theme.php

2
templates/themes/catalog/theme.php

@ -20,7 +20,7 @@
$b = new Catalog();
$b->build($settings, $board);
}
} elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') && in_array($board, $boards)) {
} elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') && in_array($board, $boards)) {
$b = new Catalog();
$b->build($settings, $board);
}

2
templates/themes/recent/theme.php

@ -24,7 +24,7 @@
$this->excluded = explode(' ', $settings['exclude']);
if ($action == 'all' || $action == 'post' || $action == 'post-thread')
if ($action == 'all' || $action == 'post' || $action == 'post-thread' || $action == 'post-delete')
file_write($config['dir']['home'] . $settings['html'], $this->homepage($settings));
}

2
templates/themes/sitemap/theme.php

@ -11,7 +11,7 @@
// - post (a post has been made)
// - thread (a thread has been made)
if ($action != 'post' && $action != 'post-thread')
if ($action != 'post' && $action != 'post-thread' && $action != 'post-delete')
return;
$boards = explode(' ', $settings['boards']);

Loading…
Cancel
Save