From a2e3686d47fa3f21fa13ca12cd989ca908e4268d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 21 Feb 2018 11:40:49 +0100 Subject: [PATCH] =?UTF-8?q?XML=20f=C3=BCr=20Dokumentenvorlagen=20werden=20?= =?UTF-8?q?automatisch=20erweitert=20um=20die=20Information=20ob=20das=20D?= =?UTF-8?q?okument=20anschlie=C3=9Fend=20signiert=20wird.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/pdfExport.php | 32 ++++++------------- content/student/studentzeugnisoverlay.xul.php | 3 +- include/dokument_export.class.php | 30 ++++++++++++++--- 3 files changed, 37 insertions(+), 28 deletions(-) diff --git a/content/pdfExport.php b/content/pdfExport.php index 7104ed3cc..53fd18fdd 100644 --- a/content/pdfExport.php +++ b/content/pdfExport.php @@ -319,22 +319,14 @@ if (!isset($_REQUEST["archive"])) $dokument->setFilename($filename); - if (!$dokument->create($output)) - die($dokument->errormsg); - if ($sign === true) { - if ($dokument->sign($user)) - { - $dokument->output(); - } - else - { - echo $dokument->errormsg; - } + $dokument->sign($user); } - else + + if ($dokument->create($output)) $dokument->output(); + $dokument->close(); } } @@ -413,18 +405,14 @@ else if ($sign === true) { - if ($dokument->sign($user)) - { - $doc = $dokument->output(false); - } - else - { - $error = true; - $errormsg = $dokument->errormsg; - } + $dokument->sign($user); } - else + + if ($dokument->create($output)) $doc = $dokument->output(false); + else + $error = true; + $dokument->close(); if(!$error) diff --git a/content/student/studentzeugnisoverlay.xul.php b/content/student/studentzeugnisoverlay.xul.php index 079b30d88..3337dd888 100644 --- a/content/student/studentzeugnisoverlay.xul.php +++ b/content/student/studentzeugnisoverlay.xul.php @@ -127,7 +127,8 @@ echo '';