mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
Theme fixes
This commit is contained in:
parent
c7e5cd6814
commit
2600298be8
@ -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));
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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']);
|
||||
|
@ -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…
Reference in New Issue
Block a user