mirror of
https://github.com/Circlepuller/Tinyboard.git
synced 2025-01-17 13:28:31 +01:00
Theme fixes
This commit is contained in:
parent
98d1b4e8e4
commit
2e23790459
@ -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));
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
@ -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']);
|
||||||
|
@ -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']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user