Fixed hook "pdf generation", executeHooks misnamed: replacement

"adterPDFCreation" with "afterPDFCreation"
This commit is contained in:
David Avigni (Ankapi) 2015-04-22 15:23:52 +02:00
parent 360b1c731d
commit e298bd0a68

View File

@ -188,7 +188,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
$hookmanager->initHooks(array('pdfgeneration'));
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs);
global $action;
$reshook=$hookmanager->executeHooks('adterPDFCreation',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
$reshook=$hookmanager->executeHooks('afterPDFCreation',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
if (! empty($conf->global->MAIN_UMASK))
@chmod($file, octdec($conf->global->MAIN_UMASK));