Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
ac83f200
Commit
ac83f200
authored
Jan 26, 2022
by
Jean-Laurent DUZANT
Browse files
FIX #19325 TIME 1:00 bigger email meta table && remove old tmp html files - Jean-Laurent
parent
2f3d3f18
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/resource/controllers/FolderPrintController.php
View file @
ac83f200
...
...
@@ -964,7 +964,7 @@ class FolderPrintController
$status
=
_EMAIL_ERROR_SENT
;
}
$widthTable_px
=
"1
0
00px"
;
$widthTable_px
=
"1
2
00px"
;
$cellPaddingBottom_px
=
"30px"
;
$emailMeta
=
"<table style=
\"
width:
$widthTable_px
;
\"
cellspacing=
\"
0
\"
cellpadding=
\"
5
\"
>
...
...
@@ -1013,9 +1013,10 @@ class FolderPrintController
$tmpDir
=
CoreConfigModel
::
getTmpPath
();
$filePathInTmpNoExtension
=
$tmpDir
.
'email_'
.
$email
[
'id'
]
.
'_'
.
$GLOBALS
[
'id'
];
file_put_contents
(
$filePathInTmpNoExtension
.
'.html'
,
mb_convert_encoding
(
$emailMeta_emailDataBody
,
'HTML'
,
'UTF-8'
));
ConvertPdfController
::
convertInPdf
([
'fullFilename'
=>
$filePathInTmpNoExtension
.
'.html'
]);
if
(
file_exists
(
$filePathInTmpNoExtension
.
'.html'
)){
unlink
(
$filePathInTmpNoExtension
.
'.html'
);}
return
$filePathInTmpNoExtension
.
'.pdf'
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment