Fixed incorrect language path when choosing the language from browser preference

This commit is contained in:
Andrew Manning 2017-08-24 11:19:11 +00:00
parent 6c38857502
commit 592cf893c0

View File

@ -128,7 +128,7 @@ function load_doc_file($s) {
$x = determine_help_language();
$lang = $x['language'];
$url_idx = ($x['from_url'] ? 1 : 0);
if($x['from_url'] && $lang !== 'en') {
if($lang !== 'en') {
$path .= '/' . $lang;
}