Merge pull request #14536 from ptibogxiv/patch-347

Fix for better code
This commit is contained in:
Laurent Destailleur 2020-08-27 19:57:34 +02:00 committed by GitHub
commit e95361fed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -341,8 +341,7 @@ if ($conf->global->TAKEPOS_ENABLE_SUMUP) {
if (!empty($conf->global->$keyforsumupbank)) {
print '<button type="button" class="calcbutton2" onclick="ValidateSumup();">Sumup</button>';
} else {
$langs->load("errors");
$langs->load("admin");
$langs->loadLangs(array("errors", "admin"));
print '<button type="button" class="calcbutton2 disabled" title="'.$langs->trans("SetupNotComplete").'">Sumup</button>';
}
}