Fix image path when exporting to PDF see BT#14143

pull/2543/head
jmontoyaa 7 years ago
parent 2895526562
commit 3449aa17c9
  1. 3
      plugin/customcertificate/src/print_certificate.php

@ -63,7 +63,7 @@ if ($sessionId > 0) {
$table = Database::get_main_table(CustomCertificatePlugin::TABLE_CUSTOMCERTIFICATE);
$useDefault = false;
$path = api_get_path(WEB_UPLOAD_PATH).'certificates/';
$path = api_get_path(SYS_UPLOAD_PATH).'certificates/';
// Get info certificate
$infoCertificate = Database::select(
@ -315,7 +315,6 @@ foreach ($userList as $userInfo) {
// Rear certificate
$htmlText .= '<div class="caraB" style="page-break-before:always;" margin:0; padding:0;>';
if ($infoCertificate['contents_type'] == 0) {
$courseDescription = new CourseDescription();
$contentDescription = $courseDescription->get_data_by_description_type(3, $courseId, 0);

Loading…
Cancel
Save