From dfd05e88f9905bbd644e1847fa8ec383a9fc8857 Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 9 Oct 2014 03:57:18 +0200 Subject: [PATCH] possible fix of themes` interactions --- inc/functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 inc/functions.php diff --git a/inc/functions.php b/inc/functions.php old mode 100644 new mode 100755 index 0454a129..8f33fdb6 --- a/inc/functions.php +++ b/inc/functions.php @@ -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()); while ($theme = $query->fetch(PDO::FETCH_ASSOC)) { + // Restore them + $config = $_config; + $board = $_board; + rebuildTheme($theme['theme'], $action, $boardname); } - // Restore them + // Restore them again $config = $_config; $board = $_board; }