Skip to content
Snippets Groups Projects
Commit bfc15fb9 authored by Jean-François Ferry's avatar Jean-François Ferry
Browse files

Change name of hidden option to add timing in filename (MAIN_DOC_USE_TIMING)

parent 271dcf57
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc
$newfiletmp=preg_replace('/modele_/i','',$newfiletmp);
// Get extension (ods or odt)
$newfileformat=substr($newfile, strrpos($newfile, '.')+1);
if ( ! empty($conf->global->MAIN_ODT_USE_TIMING))
if ( ! empty($conf->global->MAIN_DOC_USE_TIMING))
{
$filename=$newfiletmp.'.'.dol_print_date(dol_now(),'%Y%m%d%H%M%S').'.'.$newfileformat;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment