Skip to content

Commit

Permalink
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 4, 2024
2 parents 27f1e25 + 7ca87d9 commit 7fd6870
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion htdocs/core/ajax/onlineSign.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,12 @@
$s = $pdf->getTemplatesize($tppl);
$pdf->AddPage($s['h'] > $s['w'] ? 'P' : 'L');
$pdf->useTemplate($tppl);
$propalsignonspecificpage = getDolGlobalInt("PROPAL_SIGNATURE_ON_SPECIFIC_PAGE");
if ($propalsignonspecificpage < 0) {
$propalsignonspecificpage = $pagecount - abs($propalsignonspecificpage);
}

if (getDolGlobalString("PROPAL_SIGNATURE_ON_ALL_PAGES") || getDolGlobalInt("PROPAL_SIGNATURE_ON_SPECIFIC_PAGE") == $i) {
if (getDolGlobalString("PROPAL_SIGNATURE_ON_ALL_PAGES") || $propalsignonspecificpage == $i) {
// A signature image file is 720 x 180 (ratio 1/4) but we use only the size into PDF
// TODO Get position of box from PDF template

Expand Down
4 changes: 2 additions & 2 deletions htdocs/master.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ function is_countable($c)
print "SorryWebsiteIsCurrentlyOffLine";
}
print '</div>';
exit;
exit(1);
}
dol_print_error($db, "host=".$conf->db->host.", port=".$conf->db->port.", user=".$conf->db->user.", databasename=".$conf->db->name.", ".$db->error);
exit;
exit(1);
}
}

Expand Down

0 comments on commit 7fd6870

Please sign in to comment.