Reload locales after a save_config()
This commit is contained in:
parent
4f0dac1e3a
commit
2203972e65
@ -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);
|
||||
}
|
||||
|
2
miniflux/vendor/PicoTools/Translator.php
vendored
2
miniflux/vendor/PicoTools/Translator.php
vendored
@ -110,7 +110,7 @@ namespace PicoTools\Translator {
|
||||
{
|
||||
static $values = array();
|
||||
|
||||
if ($locales) {
|
||||
if ($locales !== null) {
|
||||
|
||||
$values = $locales;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user