Update pdf_standard.class.php

This commit is contained in:
Laurent Destailleur 2020-09-09 14:43:24 +02:00 committed by GitHub
parent f08c91fcc6
commit 229aa14a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,6 +251,10 @@ class pdf_standard extends CommonStickerGenerator
{
if ($object->country == '-') $object->country = '';
$year = date('Y', dol_now())
$month = date('m', dol_now())
$day = date('d', dol_now())
// List of values to scan for a replacement
$substitutionarray = array(
'__ID__' => $object->id,
@ -267,9 +271,9 @@ class pdf_standard extends CommonStickerGenerator
'__EMAIL__'=>$object->email,
'__BIRTH__'=>dol_print_date($object->birth, 'day'),
'__TYPE__'=>$object->type,
'__YEAR__'=>date('Y', dol_now()),
'__MONTH__'=>date('m', dol_now()),
'__DAY__'=>date('d', dol_now()),
'__YEAR__'=>$year,
'__MONTH__'=>$month,
'__DAY__'=>$day,
'__DOL_MAIN_URL_ROOT__'=>DOL_MAIN_URL_ROOT,
'__SERVER__'=>"http://".$_SERVER["SERVER_NAME"]."/"
);