mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-12 19:02:35 +01:00
Clean code with rector 2
This commit is contained in:
@@ -558,7 +558,7 @@ if ($mode == 'common' || $mode == 'commonkanban') {
|
||||
$deschelp .= '<div class="info hideonsmartphone">'.$desc."<br></div>\n";
|
||||
}
|
||||
if (getDolGlobalString('MAIN_SETUP_MODULES_INFO')) { // Show a custom message
|
||||
$deschelp .= '<div class="info">'.$langs->trans($conf->global->MAIN_SETUP_MODULES_INFO)."<br></div>\n";
|
||||
$deschelp .= '<div class="info">'.$langs->trans(getDolGlobalString('MAIN_SETUP_MODULES_INFO'))."<br></div>\n";
|
||||
}
|
||||
if ($deschelp) {
|
||||
$deschelp .= '<br>';
|
||||
@@ -1242,7 +1242,7 @@ if ($mode == 'deploy') {
|
||||
|
||||
print $langs->trans("YouCanSubmitFile").'<br><br>';
|
||||
|
||||
$max = $conf->global->MAIN_UPLOAD_DOC; // In Kb
|
||||
$max = getDolGlobalString('MAIN_UPLOAD_DOC'); // In Kb
|
||||
$maxphp = @ini_get('upload_max_filesize'); // In unknown
|
||||
if (preg_match('/k$/i', $maxphp)) {
|
||||
$maxphp = preg_replace('/k$/i', '', $maxphp);
|
||||
|
||||
Reference in New Issue
Block a user