diff --git a/miniflux/model.php b/miniflux/model.php index b633f66..e6b2fac 100644 --- a/miniflux/model.php +++ b/miniflux/model.php @@ -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); } diff --git a/miniflux/vendor/PicoTools/Translator.php b/miniflux/vendor/PicoTools/Translator.php index 832635c..e2ce27d 100644 --- a/miniflux/vendor/PicoTools/Translator.php +++ b/miniflux/vendor/PicoTools/Translator.php @@ -110,7 +110,7 @@ namespace PicoTools\Translator { { static $values = array(); - if ($locales) { + if ($locales !== null) { $values = $locales; }