Fix warning
This commit is contained in:
parent
e2e9a330fa
commit
f9d520b29d
2 changed files with 4 additions and 2 deletions
|
|
@ -5278,7 +5278,9 @@ function dol_print_error($db = '', $error = '', $errors = null)
|
|||
print 'This website or feature is currently temporarly not available or failed after a technical error.<br><br>This may be due to a maintenance operation. Current status of operation ('.dol_print_date(dol_now(), 'dayhourrfc').') are on next line...<br><br>'."\n";
|
||||
print $langs->trans("DolibarrHasDetectedError").'. ';
|
||||
print $langs->trans("YouCanSetOptionDolibarrMainProdToZero");
|
||||
define("MAIN_CORE_ERROR", 1);
|
||||
if (!defined("MAIN_CORE_ERROR")) {
|
||||
define("MAIN_CORE_ERROR", 1);
|
||||
}
|
||||
}
|
||||
|
||||
dol_syslog("Error ".$syslog, LOG_ERR);
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ if ($resql) {
|
|||
|
||||
print '<td width="16" class="right nobordernopadding hideonsmartphone">';
|
||||
$filename = dol_sanitizeFileName($obj->ref);
|
||||
$filedir = $conf->commande->dir_output.'/'.dol_sanitizeFileName($obj->ref);
|
||||
$filedir = $conf->projet->dir_output.'/'.dol_sanitizeFileName($obj->ref);
|
||||
$urlsource = $_SERVER['PHP_SELF'].'?id='.$obj->rowid;
|
||||
print $formfile->getDocumentsLink($projectstatic->element, $filename, $filedir);
|
||||
print '</td></tr></table>';
|
||||
|
|
|
|||
Loading…
Reference in a new issue