From 7833ac8fb0181a7377dd277b7f00dcf8a10b1dbe Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 20 May 2021 17:53:28 +0200 Subject: [PATCH] Code comment --- htdocs/master.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php index e38ddf9b93c..00cfcf842d5 100644 --- a/htdocs/master.inc.php +++ b/htdocs/master.inc.php @@ -230,7 +230,7 @@ if (!defined('NOREQUIREDB') && !defined('NOREQUIRESOC')) { // Set default language (must be after the setValues setting global $conf->global->MAIN_LANG_DEFAULT. Page main.inc.php will overwrite langs->defaultlang with user value later) if (!defined('NOREQUIRETRAN')) { $langcode = (GETPOST('lang', 'aZ09') ? GETPOST('lang', 'aZ09', 1) : (empty($conf->global->MAIN_LANG_DEFAULT) ? 'auto' : $conf->global->MAIN_LANG_DEFAULT)); - if (defined('MAIN_LANG_DEFAULT')) { + if (defined('MAIN_LANG_DEFAULT')) { // So a page can force the language whatever is setup and parameters in URL $langcode = constant('MAIN_LANG_DEFAULT'); } $langs->setDefaultLang($langcode);