Skip to content

Commit

Permalink
improved text processing and pdf generation
Browse files Browse the repository at this point in the history
  • Loading branch information
fneumann committed Jan 19, 2024
1 parent 5a18f83 commit f4b7aaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/Corrector/class.CorrectorStartGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ protected function downloadWrittenPdf()
$repoWriter = $this->localDI->getWriterRepo()->getWriterById($writer_id);

$filename = 'task' . $this->object->getId() . '_writer' . $repoWriter->getId(). '-writing.pdf';
ilUtil::deliverData($service->getWritingAsPdf($this->object, $repoWriter, true, true), $filename, 'application/pdf');
ilUtil::deliverData($service->getWritingAsPdf($this->object, $repoWriter, true), $filename, 'application/pdf');
}

protected function downloadCorrectedPdf()
Expand Down
2 changes: 1 addition & 1 deletion classes/WriterAdmin/class.WriterAdminGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ public function uploadPDFVersion()
}

$this->addContentCss();
$subs[] = $this->uiFactory->panel()->sub($this->plugin->txt("writing"),
$subs[] = $this->uiFactory->panel()->sub($this->plugin->txt("pdf_version_header_writing"),
$this->uiFactory->legacy($this->displayContent($this->localDI->getDataService($task_id)->cleanupRichText($essay->getWrittenText())))
);
}
Expand Down
2 changes: 1 addition & 1 deletion lang/ilias_de.lang
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ pdf_version_warning_authorized_essay#:#Teilnehmer/in hat bereits einen Text abge
writing_remove_authorize_log_description#:#Die Autorisierung der Abgabe von %s wurde von %s entfernt.
pdf_version_download#:#PDF-Abgabe herunterladen
download#:#Herunterladen
writing#:#Bearbeitung
pdf_version_header_writing#:#Text aus der Schreiboberfläche (wird hinzugefügt)
pdf_version_upload_not_allowed_by_corrections#:#Sie können keine PDF-Version hochladen, da eine Korrektur bereits autorisiert ist.
pdf_version_upload_successful_auth#:#Die PDF-Version wurde erfolgreich hochgeladen und autorisiert.
pdf_version_upload_successful_removed#:#Die PDF-Version wurde erfolgreich entfernt.
Expand Down

0 comments on commit f4b7aaa

Please sign in to comment.