diff options
| author | 2019-10-09 23:37:47 +0200 | |
|---|---|---|
| committer | 2019-10-09 23:37:47 +0200 | |
| commit | b20fddc330932c55945534f9a219d81aefaf62c0 (patch) | |
| tree | bf6c9d7f6b3e558c638aee6b91c0c4dc9731db7c /p/api/fever.php | |
| parent | 077e3cff458e4c36b364c065397d524025ee3de1 (diff) | |
Fix API i18n (#2565)
Fix https://github.com/FreshRSS/FreshRSS/issues/2564
Diffstat (limited to 'p/api/fever.php')
| -rw-r--r-- | p/api/fever.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/p/api/fever.php b/p/api/fever.php index 30b85dafd..94d3a3b3d 100644 --- a/p/api/fever.php +++ b/p/api/fever.php @@ -165,9 +165,12 @@ class FeverAPI $user_conf = get_user_configuration($username); if ($user_conf != null && $feverKey === $user_conf->feverKey) { FreshRSS_Context::$user_conf = $user_conf; + Minz_Translate::init(FreshRSS_Context::$user_conf->language); $this->entryDAO = FreshRSS_Factory::createEntryDao(); $this->feedDAO = FreshRSS_Factory::createFeedDao(); return true; + } else { + Minz_Translate::init(); } Minz_Log::error('Fever API: Reset API password for user: ' . $username, API_LOG); Minz_Log::error('Fever API: Please reset your API password!'); |
