diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-18 12:06:26 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-18 12:06:26 -0400 |
| commit | e4bd9a6886af2a812ccc909d8ad957df1bdc5d2b (patch) | |
| tree | 698630de8be70b1bf50fadef701c13109c1d5083 /inc | |
| parent | de4b5b396246ee5c3cb8687cfef3647c844a3b54 (diff) | |
Themes edit: Split "post" into two seperate actions: "post" (replies) and "post-thread". And add a $board variable.
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/functions.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/functions.php b/inc/functions.php index 40a2c1fe..af810f31 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -239,12 +239,12 @@ function create_antibot($board, $thread = null) { return _create_antibot($board, $thread); } -function rebuildThemes($action) { +function rebuildThemes($action, $board = false) { // 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()) { - rebuildTheme($theme['theme'], $action); + rebuildTheme($theme['theme'], $action, $board); } } @@ -261,7 +261,7 @@ function loadThemeConfig($_theme) { return $theme; } -function rebuildTheme($theme, $action) { +function rebuildTheme($theme, $action, $board = false) { global $config, $_theme; $_theme = $theme; @@ -270,7 +270,7 @@ function rebuildTheme($theme, $action) { if (file_exists($config['dir']['themes'] . '/' . $_theme . '/theme.php')) { require_once $config['dir']['themes'] . '/' . $_theme . '/theme.php'; - $theme['build_function']($action, themeSettings($_theme)); + $theme['build_function']($action, themeSettings($_theme), $board); } } |
