mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-01 02:27:24 +01:00
Reset to global locale before openBoard
This commit is contained in:
parent
e6ab91e66c
commit
f3000b6d8a
@ -26,6 +26,7 @@ $start = microtime(true);
|
|||||||
// parse command line
|
// parse command line
|
||||||
$opts = getopt('qfb:', Array('board:', 'quick', 'full', 'quiet'));
|
$opts = getopt('qfb:', Array('board:', 'quick', 'full', 'quiet'));
|
||||||
$options = Array();
|
$options = Array();
|
||||||
|
$global_locale = $config['locale'];
|
||||||
|
|
||||||
$options['board'] = isset($opts['board']) ? $opts['board'] : (isset($opts['b']) ? $opts['b'] : false);
|
$options['board'] = isset($opts['board']) ? $opts['board'] : (isset($opts['b']) ? $opts['b'] : false);
|
||||||
$options['quiet'] = isset($opts['q']) || isset($opts['quiet']);
|
$options['quiet'] = isset($opts['q']) || isset($opts['quiet']);
|
||||||
@ -59,6 +60,8 @@ foreach($boards as &$board) {
|
|||||||
|
|
||||||
if(!$options['quiet'])
|
if(!$options['quiet'])
|
||||||
echo "Opening board /{$board['uri']}/...\n";
|
echo "Opening board /{$board['uri']}/...\n";
|
||||||
|
// Reset locale to global locale
|
||||||
|
$config['locale'] = $global_locale;
|
||||||
openBoard($board['uri']);
|
openBoard($board['uri']);
|
||||||
$config['try_smarter'] = false;
|
$config['try_smarter'] = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user