Update functions.lib.php

This commit is contained in:
Frédéric FRANCE 2020-11-17 11:54:18 +01:00 committed by GitHub
parent d114c56672
commit fb5385180f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6660,6 +6660,14 @@ function complete_substitutions_array(&$substitutionarray, $outputlangs, $object
}
}
}
if (!empty($conf->global->ODT_ENABLE_ALL_TAGS_IN_SUBSTITUTIONS) {
// to list all tags in odt template
$tags = '';
foreach ($substitutionarray as $key => $value) {
$tags .= '{' . $key . '} => ' . $value ."\n";
}
$substitutionarray = array_merge($substitutionarray, array('__ALL_TAGS__' => $tags));
}
}
/**