possible fix of themes` interactions
This commit is contained in:
parent
74a40b72ed
commit
dfd05e88f9
6
inc/functions.php
Normal file → Executable file
6
inc/functions.php
Normal file → Executable file
@ -345,10 +345,14 @@ function rebuildThemes($action, $boardname = false) {
|
|||||||
$query = query("SELECT `theme` FROM ``theme_settings`` WHERE `name` IS NULL AND `value` IS NULL") or error(db_error());
|
$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)) {
|
while ($theme = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||||
|
// Restore them
|
||||||
|
$config = $_config;
|
||||||
|
$board = $_board;
|
||||||
|
|
||||||
rebuildTheme($theme['theme'], $action, $boardname);
|
rebuildTheme($theme['theme'], $action, $boardname);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore them
|
// Restore them again
|
||||||
$config = $_config;
|
$config = $_config;
|
||||||
$board = $_board;
|
$board = $_board;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user