1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-18 02:16:03 +01:00

Theme fixes

This commit is contained in:
Daniel Saunders 2020-01-19 16:39:10 -05:00 committed by Fredrick Brennan
parent c7e5cd6814
commit 2600298be8
4 changed files with 4 additions and 4 deletions

View File

@ -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));
}

View File

@ -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,

View File

@ -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']);

View File

@ -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']);