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

This commit is contained in:
Dan Saunders 2013-08-25 23:26:41 -04:00 committed by Michael Foster
parent 09388f6588
commit bb06593ef5
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
$b = new Catalog(); $b = new Catalog();
$b->build($settings, $board); $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 = new Catalog();
$b->build($settings, $board); $b->build($settings, $board);
} }

View File

@ -24,7 +24,7 @@
$this->excluded = explode(' ', $settings['exclude']); $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)); file_write($config['dir']['home'] . $settings['html'], $this->homepage($settings));
} }

View File

@ -11,7 +11,7 @@
// - post (a post has been made) // - post (a post has been made)
// - thread (a thread 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; return;
$boards = explode(' ', $settings['boards']); $boards = explode(' ', $settings['boards']);