From f294af104bfc27d03168942670ea8fef3e64ada6 Mon Sep 17 00:00:00 2001 From: 8chan Date: Mon, 29 Sep 2014 07:17:39 +0000 Subject: Reset to global locale before openBoard --- tools/rebuild.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/rebuild.php') diff --git a/tools/rebuild.php b/tools/rebuild.php index 3501f8f6..82df3e19 100755 --- a/tools/rebuild.php +++ b/tools/rebuild.php @@ -26,6 +26,7 @@ $start = microtime(true); // parse command line $opts = getopt('qfb:', Array('board:', 'quick', 'full', 'quiet')); $options = Array(); +$global_locale = $config['locale']; $options['board'] = isset($opts['board']) ? $opts['board'] : (isset($opts['b']) ? $opts['b'] : false); $options['quiet'] = isset($opts['q']) || isset($opts['quiet']); @@ -59,6 +60,8 @@ foreach($boards as &$board) { if(!$options['quiet']) echo "Opening board /{$board['uri']}/...\n"; + // Reset locale to global locale + $config['locale'] = $global_locale; openBoard($board['uri']); $config['try_smarter'] = false; -- cgit v1.3 From aadbf4852f51a1fee02dfee9708d5b1d67eedf6d Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 5 Apr 2015 18:50:16 +0200 Subject: tools/rebuild.php: fix for bans.php not included by default and public_banlist --- tools/rebuild.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/rebuild.php') diff --git a/tools/rebuild.php b/tools/rebuild.php index 82df3e19..289523a1 100755 --- a/tools/rebuild.php +++ b/tools/rebuild.php @@ -21,6 +21,8 @@ require dirname(__FILE__) . '/inc/cli.php'; +require_once("inc/bans.php"); + $start = microtime(true); // parse command line -- cgit v1.3