fix development mode document type
This commit is contained in:
@ -339,7 +339,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
|
|||||||
*/
|
*/
|
||||||
public function outputDev(Html2Pdf $oPdf, $sFilename, $target, $html)
|
public function outputDev(Html2Pdf $oPdf, $sFilename, $target, $html)
|
||||||
{
|
{
|
||||||
$sFilename = str_replace('.pdf', '.html', $sFilename);
|
$sFilename = str_replace('.pdf', '.sgml', $sFilename);
|
||||||
|
|
||||||
switch($target) {
|
switch($target) {
|
||||||
case 'I': {
|
case 'I': {
|
||||||
@ -380,7 +380,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
|
|||||||
header('Content-Type: application/force-download');
|
header('Content-Type: application/force-download');
|
||||||
header('Content-Type: application/octet-stream', false);
|
header('Content-Type: application/octet-stream', false);
|
||||||
header('Content-Type: application/download', 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
|
// use the Content-Disposition header to supply a recommended filename
|
||||||
header('Content-Disposition: attachment; filename="'.basename($sFilename).'";');
|
header('Content-Disposition: attachment; filename="'.basename($sFilename).'";');
|
||||||
header('Content-Transfer-Encoding: binary');
|
header('Content-Transfer-Encoding: binary');
|
||||||
|
@ -19,8 +19,8 @@ $aLang = array(
|
|||||||
|
|
||||||
'SHOP_MODULE_GROUP_d3PdfDocumentsmain' => 'Grundeinstellungen',
|
'SHOP_MODULE_GROUP_d3PdfDocumentsmain' => 'Grundeinstellungen',
|
||||||
'SHOP_MODULE_d3PdfDocumentsbDev' => 'Entwicklermodus',
|
'SHOP_MODULE_d3PdfDocumentsbDev' => 'Entwicklermodus',
|
||||||
'HELP_SHOP_MODULE_d3PdfDocumentsbDev' => 'Mit aktiviertem Entwicklermodus wird das Dokument im '.
|
'HELP_SHOP_MODULE_d3PdfDocumentsbDev' => 'Mit aktiviertem Entwicklermodus kann das Dokument im '.
|
||||||
'HTML-Format ausgegeben. Inhaltliche Fehler können so besser nachvollzogen werden.',
|
'SGML-Format ausgegeben werden. Inhaltliche Fehler können so besser nachvollzogen werden.',
|
||||||
'SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => 'BasicAuth des Shops - Benutzername (optional)',
|
'SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => 'BasicAuth des Shops - Benutzername (optional)',
|
||||||
'HELP_SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => $basicAuthHelp,
|
'HELP_SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => $basicAuthHelp,
|
||||||
'SHOP_MODULE_d3PdfDocumentsbasicAuthPassword' => 'BasicAuth des Shops - Passwort (optional)',
|
'SHOP_MODULE_d3PdfDocumentsbasicAuthPassword' => 'BasicAuth des Shops - Passwort (optional)',
|
||||||
|
@ -19,8 +19,8 @@ $aLang = array(
|
|||||||
|
|
||||||
'SHOP_MODULE_GROUP_d3PdfDocumentsmain' => 'Basic settings',
|
'SHOP_MODULE_GROUP_d3PdfDocumentsmain' => 'Basic settings',
|
||||||
'SHOP_MODULE_d3PdfDocumentsbDev' => 'Developer mode',
|
'SHOP_MODULE_d3PdfDocumentsbDev' => 'Developer mode',
|
||||||
'HELP_SHOP_MODULE_d3PdfDocumentsbDev' => 'If developer mode is activated, the document is output in '.
|
'HELP_SHOP_MODULE_d3PdfDocumentsbDev' => 'If developer mode is activated, the document can exported '.
|
||||||
'HTML format. This makes it much easier to trace content errors.',
|
'in SGML format. This makes it much easier to trace content errors.',
|
||||||
'SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => 'BasicAuth of the shop - user name (optional)',
|
'SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => 'BasicAuth of the shop - user name (optional)',
|
||||||
'HELP_SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => $basicAuthHelp,
|
'HELP_SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => $basicAuthHelp,
|
||||||
'SHOP_MODULE_d3PdfDocumentsbasicAuthPassword' => 'BasicAuth of the shop - password (optional)',
|
'SHOP_MODULE_d3PdfDocumentsbasicAuthPassword' => 'BasicAuth of the shop - password (optional)',
|
||||||
|
Reference in New Issue
Block a user