Skip to content

Commit 5621565

Browse files
committed
Merge branch 'master' of github.com:chamilo/chamilo-lms
2 parents 497080d + b1f548d commit 5621565

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

public/main/inc/lib/pdf.lib.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function html_to_pdf_with_template(
175175

176176
$css = Container::getThemeHelper()->getAssetContents('print.css');
177177

178-
self::content_to_pdf(
178+
$this->content_to_pdf(
179179
$html,
180180
$css,
181181
$this->params['filename'],
@@ -242,7 +242,7 @@ public function html_to_pdf(
242242
];
243243

244244
// Formatting the pdf
245-
self::format_pdf($courseInfo, $complete_style);
245+
$this->format_pdf($courseInfo, $complete_style);
246246

247247
$counter = 1;
248248
foreach ($htmlFileArray as $file) {
@@ -397,7 +397,7 @@ public function content_to_pdf(
397397
$completeHeader = true,
398398
$disableFooter = false,
399399
$disablePagination = false
400-
) {
400+
): ?string {
401401
$urlAppend = '';
402402

403403
if (empty($document_html)) {
@@ -836,7 +836,7 @@ public function format_pdf($courseInfo, $complete = true, $disablePagination = f
836836
}
837837

838838
if (empty($this->custom_footer)) {
839-
self::set_footer();
839+
$this->set_footer();
840840
} else {
841841
$this->pdf->SetHTMLFooter($this->custom_footer);
842842
}
@@ -859,7 +859,7 @@ public function exportFromHtmlToFile($html, $fileName)
859859

860860
$css = Container::getThemeHelper()->getAssetContents('print.css');
861861

862-
$pdfPath = self::content_to_pdf(
862+
$pdfPath = $this->content_to_pdf(
863863
$html,
864864
$css,
865865
$fileName,

0 commit comments

Comments
 (0)