Browse Source

hopefully fix locales

pull/40/head
czaks 10 years ago
parent
commit
3a552e5b76
  1. 15
      inc/functions.php

15
inc/functions.php

@ -335,7 +335,7 @@ function create_antibot($board, $thread = null) {
}
function rebuildThemes($action, $boardname = false) {
global $config, $board;
global $config, $board, $current_locale;
// Save the global variables
$_config = $config;
@ -349,12 +349,25 @@ function rebuildThemes($action, $boardname = false) {
$config = $_config;
$board = $_board;
// Reload the locale
if ($config['locale'] != $current_locale) {
$current_locale = $config['locale'];
init_locale($config['locale'], $error);
}
rebuildTheme($theme['theme'], $action, $boardname);
}
// Restore them again
$config = $_config;
$board = $_board;
// Reload the locale
if ($config['locale'] != $current_locale) {
$current_locale = $config['locale'];
init_locale($config['locale'], $error);
}
}

Loading…
Cancel
Save