From dba38b10d40698c6421cc67c026a95743ff4cdfd Mon Sep 17 00:00:00 2001 From: Lorenzo Yario Date: Sun, 14 Jul 2024 03:26:06 -0700 Subject: [PATCH] allow wildcard for catalog theme --- templates/themes/catalog/theme.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 2f0cfe7a..afe2ff90 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -1,6 +1,15 @@ fetch(PDO::FETCH_ASSOC)) { + $boards[] = $board['uri']; + } + return $boards; + } + function catalog_build($action, $settings, $board) { global $config; @@ -13,6 +22,11 @@ $boards = explode(' ', $settings['boards']); + if (in_array('*', $boards)) { + $boards = get_all_boards(); + } + + if ($action == 'all') { foreach ($boards as $board) { $b = new Catalog();