From 2600298be843455c3a52406bf3e71a2a694a95cb Mon Sep 17 00:00:00 2001 From: Daniel Saunders Date: Sun, 19 Jan 2020 16:39:10 -0500 Subject: [PATCH] Theme fixes --- templates/themes/catalog/theme.php | 2 +- templates/themes/frameset/theme.php | 2 +- templates/themes/recent/theme.php | 2 +- templates/themes/rss/theme.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 4f512c03..4d34d42d 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -45,7 +45,7 @@ public function build($settings, $board_name) { global $config, $board; - if ($board['uri'] != $board_name) { + if (!isset($board) || $board['uri'] != $board_name) { if (!openBoard($board_name)) { error(sprintf(_("Board %s doesn't exist"), $board_name)); } diff --git a/templates/themes/frameset/theme.php b/templates/themes/frameset/theme.php index ffab0538..e01e36b0 100644 --- a/templates/themes/frameset/theme.php +++ b/templates/themes/frameset/theme.php @@ -48,7 +48,7 @@ // Build sidebar public static function sidebar($settings) { - global $config, $board; + global $config; return Element('themes/frameset/sidebar.html', Array( 'settings' => $settings, diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php index a8aad5d1..49b08585 100644 --- a/templates/themes/recent/theme.php +++ b/templates/themes/recent/theme.php @@ -16,7 +16,7 @@ // Wrap functions in a class so they don't interfere with normal Tinyboard operations class RecentPosts { public function build($action, $settings) { - global $config, $_theme; + global $config; if ($action == 'all') { copy('templates/themes/recent/' . $settings['basecss'], $config['dir']['home'] . $settings['css']); diff --git a/templates/themes/rss/theme.php b/templates/themes/rss/theme.php index 33c1b210..ea478fd4 100755 --- a/templates/themes/rss/theme.php +++ b/templates/themes/rss/theme.php @@ -16,7 +16,7 @@ // Wrap functions in a class so they don't interfere with normal Tinyboard operations class RSSRecentPosts { public function build($action, $settings) { - global $config, $_theme; + global $config; /*if ($action == 'all') { copy('templates/themes/recent/' . $settings['basecss'], $config['dir']['home'] . $settings['css']);