fix development mode document type
Cette révision appartient à :
@ -339,7 +339,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
|
||||
*/
|
||||
public function outputDev(Html2Pdf $oPdf, $sFilename, $target, $html)
|
||||
{
|
||||
$sFilename = str_replace('.pdf', '.html', $sFilename);
|
||||
$sFilename = str_replace('.pdf', '.sgml', $sFilename);
|
||||
|
||||
switch($target) {
|
||||
case 'I': {
|
||||
@ -380,7 +380,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
|
||||
header('Content-Type: application/force-download');
|
||||
header('Content-Type: application/octet-stream', false);
|
||||
header('Content-Type: application/download', false);
|
||||
header('Content-Type: text/html', false);
|
||||
header('Content-Type: text/sgml', false);
|
||||
// use the Content-Disposition header to supply a recommended filename
|
||||
header('Content-Disposition: attachment; filename="'.basename($sFilename).'";');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur