Reload locales after a save_config()

This commit is contained in:
Frederic Guillot 2013-04-12 21:27:51 -04:00
parent 4f0dac1e3a
commit 2203972e65
2 changed files with 3 additions and 1 deletions

View File

@ -460,5 +460,7 @@ function save_config(array $values)
$_SESSION['user']['language'] = $values['language'];
unset($_COOKIE['language']);
\PicoTools\Translator\load($values['language']);
return \PicoTools\singleton('db')->table('config')->update($values);
}

View File

@ -110,7 +110,7 @@ namespace PicoTools\Translator {
{
static $values = array();
if ($locales) {
if ($locales !== null) {
$values = $locales;
}