diff options
| author | 2019-08-22 20:04:26 +0200 | |
|---|---|---|
| committer | 2019-08-22 20:04:26 +0200 | |
| commit | 6cedeeeae51f5e5220d7f786fb801951811bb743 (patch) | |
| tree | e9315d2b0c6df48d2a26d6eeeec49dcf94f6929f /app | |
| parent | 48dda9a803d4c461b6e8b1d2484aaa803ee25462 (diff) | |
Minz: New environment variable to control development mode (#2508)
* New environment variable to control development mode
Suggestion of new enviromnent variable, as discussed
https://github.com/FreshRSS/FreshRSS/pull/2492#issuecomment-523613920
* Update Docker/README.md
Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
* Update Docker/README.md
Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
* Update Docker/README.md
Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
* Declare ENV in Dockerfile
Tested
Diffstat (limited to 'app')
| -rw-r--r-- | app/install.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/install.php b/app/install.php index 8e14d14c0..a4d1d0af9 100644 --- a/app/install.php +++ b/app/install.php @@ -61,7 +61,7 @@ function initTranslate() { } function get_best_language() { - $accept = $_SERVER['HTTP_ACCEPT_LANGUAGE']; + $accept = empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? '' : $_SERVER['HTTP_ACCEPT_LANGUAGE']; return strtolower(substr($accept, 0, 2)); } |
