diff options
| author | Dan Saunders <dsaunders@dansaunders.me> | 2013-08-25 23:26:41 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-26 13:36:14 +1000 |
| commit | bb06593ef5f21b4bc4432530e5ca634f09764773 (patch) | |
| tree | 543c91dd807be789b4c1a566ec16a699e8c298d2 | |
| parent | 09388f6588843d8042fc2542d049deb47c57ce07 (diff) | |
Added post-delete handling on themes that should use it.
| -rw-r--r-- | templates/themes/catalog/theme.php | 2 | ||||
| -rw-r--r-- | templates/themes/recent/theme.php | 2 | ||||
| -rw-r--r-- | templates/themes/sitemap/theme.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 96550683..424a813b 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' || ($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); } diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php index 08d910f8..4bbf1469 100644 --- a/templates/themes/recent/theme.php +++ b/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)); } diff --git a/templates/themes/sitemap/theme.php b/templates/themes/sitemap/theme.php index 226f8357..7e5b1984 100644 --- a/templates/themes/sitemap/theme.php +++ b/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']); |
