From f8318d3425124ee30fb0ffcd3e9fc82e856afd17 Mon Sep 17 00:00:00 2001 From: 8chan Date: Sat, 22 Nov 2014 01:46:37 -0800 Subject: [PATCH] Dont write catalogs if use_read_php --- templates/themes/catalog/theme.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 72e43c14..2f3c61f1 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -17,15 +17,18 @@ $boards = explode(' ', $settings['boards']); } - if ($action == 'all') { - foreach ($boards as $board) { + if (!$config['use_read_php']) { + if ($action == 'all') { + foreach ($boards as $board) { + $b = new Catalog(); + $b->build($settings, $board); + } + } elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') && (in_array($board, $boards) | $settings['all'])) { $b = new Catalog(); $b->build($settings, $board); } - } elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') && (in_array($board, $boards) | $settings['all'])) { - $b = new Catalog(); - $b->build($settings, $board); - } elseif ($action == 'read_php') { + } + if ($action == 'read_php') { $b = new Catalog(); return $b->build($settings, $board, true); }