diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 5876778f..17bd90c4 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -31,7 +31,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 a660af51..3f36ff50 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 88fbe26f..2952c852 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']);