mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
fix themes resetting the board
This commit is contained in:
parent
4a3dd0cfd6
commit
a9c35844c7
@ -326,13 +326,23 @@ function create_antibot($board, $thread = null) {
|
||||
return _create_antibot($board, $thread);
|
||||
}
|
||||
|
||||
function rebuildThemes($action, $board = false) {
|
||||
function rebuildThemes($action, $boardname = false) {
|
||||
global $config, $board;
|
||||
|
||||
// Save the global variables
|
||||
$_config = $config;
|
||||
$_board = $board;
|
||||
|
||||
// List themes
|
||||
$query = query("SELECT `theme` FROM ``theme_settings`` WHERE `name` IS NULL AND `value` IS NULL") or error(db_error());
|
||||
|
||||
while ($theme = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
rebuildTheme($theme['theme'], $action, $board);
|
||||
rebuildTheme($theme['theme'], $action, $boardname);
|
||||
}
|
||||
|
||||
// Restore them
|
||||
$config = $_config;
|
||||
$board = $_board;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user