Clean code after yogosha reports

This commit is contained in:
Laurent Destailleur 2024-02-17 18:39:26 +01:00
parent bb06e674ad
commit fb283fdfe9
3 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,7 @@ print '<tr class="oddeven"><td width="300">'.$langs->trans("VersionProgram").'</
// If current version differs from last upgrade
if (!getDolGlobalString('MAIN_VERSION_LAST_UPGRADE')) {
// Compare version with last install database version (upgrades never occurred)
if (DOL_VERSION != $conf->global->MAIN_VERSION_LAST_INSTALL) {
if (DOL_VERSION != getDolGlobalString('MAIN_VERSION_LAST_INSTALL')) {
print ' '.img_warning($langs->trans("RunningUpdateProcessMayBeRequired", DOL_VERSION, getDolGlobalString('MAIN_VERSION_LAST_INSTALL')));
}
} else {

View File

@ -2149,9 +2149,9 @@ class Setup extends DolibarrApi
$i++;
$out .= '<tr class="oddeven">';
$out .= '<td>'.$i.'</td>'."\n";
$out .= '<td>'.$constname.'</td>'."\n";
$out .= '<td class="center">'.$constvalue.'</td>'."\n";
$out .= '<td class="center">'.$valueforchecksum.'</td>'."\n";
$out .= '<td>'.dol_escape_htmltag($constname).'</td>'."\n";
$out .= '<td class="center">'.dol_escape_htmltag($constvalue).'</td>'."\n";
$out .= '<td class="center">'.dol_escape_htmltag($valueforchecksum).'</td>'."\n";
$out .= "</tr>\n";
}

View File

@ -51,7 +51,7 @@ $confirm = GETPOST('confirm', 'alpha');
$cancel = GETPOST('cancel', 'alpha');
$sortfield = GETPOST('sortfield', 'alpha');
$sortorder = GETPOST('sortorder', 'alpha');
$sortorder = GETPOST('sortorder', 'aZ09');
$module = GETPOST('module', 'alpha');
$tab = GETPOST('tab', 'aZ09');