diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 06bd79ea618..005fdfa77bb 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -3273,15 +3273,15 @@ class Propal extends CommonObject } elseif ($status == self::STATUS_BILLED) { $statusType = 'status6'; } - - $parameters = array('status' => $status, 'mode' => $mode); + + $parameters = array('status' => $status, 'mode' => $mode); $reshook = $hookmanager->executeHooks('LibStatut', $parameters, $this); // Note that $action and $object may have been modified by hook - if ($reshook > 0) { + if ($reshook > 0) { return $hookmanager->resPrint; } - + return dolGetStatus($this->labelStatus[$status], $this->labelStatusShort[$status], '', $statusType, $mode); } diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index b43b29a43cc..e0275eb4308 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -3636,19 +3636,19 @@ class Commande extends CommonOrder $mode = 0; } - $parameters = array( - 'status' => $status, - 'mode' => $mode, - 'billed' => $billed, - 'donotshowbilled' => $donotshowbilled - ); + $parameters = array( + 'status' => $status, + 'mode' => $mode, + 'billed' => $billed, + 'donotshowbilled' => $donotshowbilled + ); - $reshook = $hookmanager->executeHooks('LibStatut', $parameters, $this); // Note that $action and $object may have been modified by hook + $reshook = $hookmanager->executeHooks('LibStatut', $parameters, $this); // Note that $action and $object may have been modified by hook - if ($reshook > 0) { + if ($reshook > 0) { return $hookmanager->resPrint; } - + return dolGetStatus($labelStatus, $labelStatusShort, '', $statusType, $mode, '', array('tooltip' => $labelTooltip)); } diff --git a/htdocs/core/class/commoninvoice.class.php b/htdocs/core/class/commoninvoice.class.php index af143b324c4..8cc9f944ef1 100644 --- a/htdocs/core/class/commoninvoice.class.php +++ b/htdocs/core/class/commoninvoice.class.php @@ -576,18 +576,18 @@ abstract class CommonInvoice extends CommonObject $labelStatusShort = $langs->transnoentitiesnoconv('Bill'.$prefix.'StatusPaid'); } } - - $parameters = array( - 'status' => $status, - 'mode' => $mode, - 'paye' => $paye, - 'alreadypaid' => $alreadypaid, - 'type' => $type - ); - $reshook = $hookmanager->executeHooks('LibStatut', $parameters, $this); // Note that $action and $object may have been modified by hook + $parameters = array( + 'status' => $status, + 'mode' => $mode, + 'paye' => $paye, + 'alreadypaid' => $alreadypaid, + 'type' => $type + ); - if ($reshook > 0) { + $reshook = $hookmanager->executeHooks('LibStatut', $parameters, $this); // Note that $action and $object may have been modified by hook + + if ($reshook > 0) { return $hookmanager->resPrint; }