FIx #yogosha5695
This commit is contained in:
parent
146706bafa
commit
3f07317f30
@ -33,7 +33,7 @@ global $langs;
|
||||
|
||||
$err = 0;
|
||||
|
||||
$setuplang = GETPOST("selectlang", '', 3) ?GETPOST("selectlang", '', 3) : (isset($_GET["lang"]) ? $_GET["lang"] : 'auto');
|
||||
$setuplang = GETPOST("selectlang", '', 3) ? GETPOST("selectlang", '', 3) : (GETPOST('lang', 'alpha', 1) ? GETPOST('lang', 'alpha', 1) : 'auto');
|
||||
$langs->setDefaultLang($setuplang);
|
||||
|
||||
$langs->loadLangs(array("install", "errors"));
|
||||
|
||||
@ -518,7 +518,7 @@ function pFooter($nonext = 0, $setuplang = '', $jscheckfunction = '', $withpleas
|
||||
}
|
||||
}
|
||||
if ($setuplang) {
|
||||
print '<input type="hidden" name="selectlang" value="'.$setuplang.'">';
|
||||
print '<input type="hidden" name="selectlang" value="'.dol_escape_htmltag($setuplang).'">';
|
||||
}
|
||||
|
||||
print '</form>'."\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user