Update doc_generic_task_odt.modules.php

This commit is contained in:
BENKE Charlie 2016-01-06 10:39:18 +01:00
parent e6fd718e51
commit cbb5f522eb

View File

@ -458,6 +458,9 @@ class doc_generic_task_odt extends ModelePDFTask
'__FROM_EMAIL__' => $this->emetteur->email,
);
complete_substitutions_array($substitutionarray, $langs, $object);
// Call the ODTSubstitutionInit hook
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs,'substitutionarray'=>&$tmparray);
$reshook=$hookmanager->executeHooks('ODTSubstitutionInit',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
// Open and load template
require_once ODTPHP_PATH.'odf.php';