Fixing style errors.

This commit is contained in:
stickler-ci 2023-02-18 02:26:38 +00:00
parent 25634fbb50
commit af8e6bfa61

View File

@ -156,7 +156,6 @@ if (empty($reshook)) {
$mode = 'emailfromthirdparty'; $mode = 'emailfromthirdparty';
$trackid = 'thi'.$object->id; $trackid = 'thi'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
} }
// Link to a project // Link to a project
@ -810,7 +809,7 @@ if ($id > 0) {
$morehtmlref .= '</form>'; $morehtmlref .= '</form>';
} }
$usercancreate = $permissiontoadd; $usercancreate = $permissiontoadd;
// Project // Project
if (isModEnabled('project')) { if (isModEnabled('project')) {
@ -1053,13 +1052,13 @@ if ($id > 0) {
// Dynamic send mail button // Dynamic send mail button
$parameters = array(); $parameters = array();
$reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by hook $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
if (empty($reshook)) { if (empty($reshook)) {
if (empty($user->socid)) { if (empty($user->socid)) {
$canSendMail = true; $canSendMail = true;
print dolGetButtonAction($langs->trans('SendMail'), '', 'default', $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&action=presend'.'&token='.newToken().'&mode=init#formmailbeforetitle', '', $canSendMail, $params); print dolGetButtonAction($langs->trans('SendMail'), '', 'default', $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&action=presend'.'&token='.newToken().'&mode=init#formmailbeforetitle', '', $canSendMail, $params);
}
} }
}
// Reopen // Reopen
if ($object->paye && $user->rights->salaries->write) { if ($object->paye && $user->rights->salaries->write) {