Theme fixes

This commit is contained in:
Daniel Saunders 2020-01-19 16:39:10 -05:00
parent 98d1b4e8e4
commit 2e23790459
4 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@
public function build($settings, $board_name) { public function build($settings, $board_name) {
global $config, $board; global $config, $board;
if ($board['uri'] != $board_name) { if (!isset($board) || $board['uri'] != $board_name) {
if (!openBoard($board_name)) { if (!openBoard($board_name)) {
error(sprintf(_("Board %s doesn't exist"), $board_name)); error(sprintf(_("Board %s doesn't exist"), $board_name));
} }

View File

@ -48,7 +48,7 @@
// Build sidebar // Build sidebar
public static function sidebar($settings) { public static function sidebar($settings) {
global $config, $board; global $config;
return Element('themes/frameset/sidebar.html', Array( return Element('themes/frameset/sidebar.html', Array(
'settings' => $settings, 'settings' => $settings,

View File

@ -16,7 +16,7 @@
// Wrap functions in a class so they don't interfere with normal Tinyboard operations // Wrap functions in a class so they don't interfere with normal Tinyboard operations
class RecentPosts { class RecentPosts {
public function build($action, $settings) { public function build($action, $settings) {
global $config, $_theme; global $config;
if ($action == 'all') if ($action == 'all')
copy('templates/themes/recent/' . $settings['basecss'], $config['dir']['home'] . $settings['css']); copy('templates/themes/recent/' . $settings['basecss'], $config['dir']['home'] . $settings['css']);

View File

@ -16,7 +16,7 @@
// Wrap functions in a class so they don't interfere with normal Tinyboard operations // Wrap functions in a class so they don't interfere with normal Tinyboard operations
class RSSRecentPosts { class RSSRecentPosts {
public function build($action, $settings) { public function build($action, $settings) {
global $config, $_theme; global $config;
/*if ($action == 'all') { /*if ($action == 'all') {
copy('templates/themes/recent/' . $settings['basecss'], $config['dir']['home'] . $settings['css']); copy('templates/themes/recent/' . $settings['basecss'], $config['dir']['home'] . $settings['css']);