Browse Source

Theme fixes

main
Daniel Saunders 4 years ago
committed by Fredrick Brennan
parent
commit
2600298be8
  1. 2
      templates/themes/catalog/theme.php
  2. 2
      templates/themes/frameset/theme.php
  3. 2
      templates/themes/recent/theme.php
  4. 2
      templates/themes/rss/theme.php

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

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

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

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

Loading…
Cancel
Save