Update doc_generic_member_odt.class.php
This commit is contained in:
parent
fcfd630f84
commit
bf390ceb4d
@ -322,11 +322,6 @@ class doc_generic_member_odt extends ModelePDFMember
|
|||||||
|
|
||||||
$tmparray = array_merge($array_member, $array_soc, $array_thirdparty, $array_other, $array_thirdparty_contact);
|
$tmparray = array_merge($array_member, $array_soc, $array_thirdparty, $array_other, $array_thirdparty_contact);
|
||||||
complete_substitutions_array($tmparray, $outputlangs, $object);
|
complete_substitutions_array($tmparray, $outputlangs, $object);
|
||||||
$tags = '';
|
|
||||||
foreach ($tmparray as $key => $value) {
|
|
||||||
$tags .= '{' . $key . '} => ' . $value ."\n";
|
|
||||||
}
|
|
||||||
$tmparray = array_merge($tmparray, array('__ALL_TAGS__' => $tags));
|
|
||||||
// Call the ODTSubstitution hook
|
// Call the ODTSubstitution hook
|
||||||
$parameters = array(
|
$parameters = array(
|
||||||
'file'=>$file,
|
'file'=>$file,
|
||||||
@ -352,12 +347,10 @@ class doc_generic_member_odt extends ModelePDFMember
|
|||||||
|
|
||||||
// Replace labels translated
|
// Replace labels translated
|
||||||
$tmparray = $outputlangs->get_translations_for_substitutions();
|
$tmparray = $outputlangs->get_translations_for_substitutions();
|
||||||
foreach ($tmparray as $key=>$value)
|
foreach ($tmparray as $key=>$value) {
|
||||||
{
|
|
||||||
try {
|
try {
|
||||||
$odfHandler->setVars($key, $value, true, 'UTF-8');
|
$odfHandler->setVars($key, $value, true, 'UTF-8');
|
||||||
} catch (OdfException $e)
|
} catch (OdfException $e) {
|
||||||
{
|
|
||||||
dol_syslog($e->getMessage(), LOG_WARNING);
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user