summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-07-18 15:19:03 -0400
committerczaks <marcin@6irc.net>2013-07-18 15:19:03 -0400
commitfa66b96240e9fdf7b179e604833d1c59702f9c39 (patch)
treec7640caebe4294b1bd0eff54ce418fe0a251104c /inc
parent8c72c8a43232f137256fa170c889ba330ebba7af (diff)
parente4bd9a6886af2a812ccc909d8ad957df1bdc5d2b (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: post.php
Diffstat (limited to 'inc')
-rw-r--r--inc/filters.php2
-rw-r--r--inc/functions.php8
2 files changed, 5 insertions, 5 deletions
diff --git a/inc/filters.php b/inc/filters.php
index 0b5eb3c1..524d37cf 100644
--- a/inc/filters.php
+++ b/inc/filters.php
@@ -81,7 +81,7 @@ class Filter {
else
$all_boards = false;
- $query = prepare("INSERT INTO `bans` VALUES (NULL, :ip, :mod, :set, :expires, :reason, :board)");
+ $query = prepare("INSERT INTO `bans` VALUES (NULL, :ip, :mod, :set, :expires, :reason, :board, 0)");
$query->bindValue(':ip', $_SERVER['REMOTE_ADDR']);
$query->bindValue(':mod', -1);
$query->bindValue(':set', time());
diff --git a/inc/functions.php b/inc/functions.php
index 84241983..fe1e254c 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -240,12 +240,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);
}
}
@@ -262,7 +262,7 @@ function loadThemeConfig($_theme) {
return $theme;
}
-function rebuildTheme($theme, $action) {
+function rebuildTheme($theme, $action, $board = false) {
global $config, $_theme;
$_theme = $theme;
@@ -271,7 +271,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);
}
}