Comment dead code

This commit is contained in:
Laurent Destailleur 2021-06-15 22:28:39 +02:00
parent 2a3b330e1e
commit e503f73e95

View File

@ -958,9 +958,10 @@ if (!$error && $massaction == "builddoc" && $permissiontoread && !GETPOST('butto
$newlang = '';
if ($conf->global->MAIN_MULTILANGS && empty($newlang) && GETPOST('lang_id', 'aZ09')) {
$newlang = GETPOST('lang_id', 'aZ09');
} elseif ($conf->global->MAIN_MULTILANGS && empty($newlang) && is_object($objecttmp->thirdparty)) {
$newlang = $objecttmp->thirdparty->default_lang;
}
//elseif ($conf->global->MAIN_MULTILANGS && empty($newlang) && is_object($objecttmp->thirdparty)) { // On massaction, we can have several values for $objecttmp->thirdparty
// $newlang = $objecttmp->thirdparty->default_lang;
//}
if (!empty($newlang)) {
$outputlangs = new Translate("", $conf);
$outputlangs->setDefaultLang($newlang);