From e42a1b04b15da8156c7e2f34a4d43703974e5673 Mon Sep 17 00:00:00 2001 From: sshscp15 <92885280+sshscp15@users.noreply.github.com> Date: Thu, 1 Sep 2022 10:29:53 -0300 Subject: [PATCH] fixes boardlist in catalog when in mod mode --- templates/themes/catalog/theme.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index a439dcdb..2f0cfe7a 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -118,7 +118,7 @@ $element = Element('themes/catalog/catalog.html', Array( 'settings' => $settings, 'config' => $config, - 'boardlist' => createBoardlist(), + 'boardlist' => createBoardlist($mod), 'recent_images' => $recent_images, 'recent_posts' => $recent_posts, 'stats' => $stats, @@ -130,13 +130,13 @@ if ($mod) { return $element; } else { - file_write($config['dir']['home'] . $board_name . '/catalog.html', $element); + file_write($config['dir']['home'] . $board_name . '/catalog.html', $element); - file_write($config['dir']['home'] . $board_name . '/index.rss', Element('themes/catalog/index.rss', Array( - 'config' => $config, - 'recent_posts' => $recent_posts, - 'board' => $board - ))); - } + file_write($config['dir']['home'] . $board_name . '/index.rss', Element('themes/catalog/index.rss', Array( + 'config' => $config, + 'recent_posts' => $recent_posts, + 'board' => $board + ))); + } } };