diff options
| author | 2020-11-11 23:03:15 +0100 | |
|---|---|---|
| committer | 2020-11-11 23:03:15 +0100 | |
| commit | 8dad63de0294c4d385069afccbba307c2b8cf9e5 (patch) | |
| tree | b1a3bfc1525a36c4c9169090ae5c62de452abb0b /lib | |
| parent | 23015f26cc9d5286d21419dbf7a6829949d60c8d (diff) | |
Fix initI18n (#3249)
* Fix initI18n
#fix
https://github.com/FreshRSS/FreshRSS/issues/3246#issuecomment-725463337
#fix https://github.com/FreshRSS/FreshRSS/issues/3136
It was due to calling `initI18n()` before `FreshRSS_Context` is
intialised in some situations
Introduced by https://github.com/FreshRSS/FreshRSS/pull/3022
Will be better fixed when https://github.com/FreshRSS/FreshRSS/pull/3070
lands
* Fallback condition
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Translate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Translate.php b/lib/Minz/Translate.php index 6d5d05c6f..3a08aba5c 100644 --- a/lib/Minz/Translate.php +++ b/lib/Minz/Translate.php @@ -103,7 +103,7 @@ class Minz_Translate { } } - return $default; + return $default ? $default : 'en'; } /** |
