diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-08-10 20:26:22 +0000 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-08-10 20:26:22 +0000 |
| commit | 1c265b7f2b6f8e93711da6c5f695e69c7cf3c06b (patch) | |
| tree | 81f4cdc0750d5ab2fe386289f820de72ea7ba2f2 /lib/classes/exportdocument | |
| parent | 0f31f705e8f41cbaf212ad52099745d6eaf039d2 (diff) | |
fix path to logo in ExportPDF class, fixes #3021
Closes #3021
Merge request studip/studip!2028
Diffstat (limited to 'lib/classes/exportdocument')
| -rw-r--r-- | lib/classes/exportdocument/ExportPDF.class.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/classes/exportdocument/ExportPDF.class.php b/lib/classes/exportdocument/ExportPDF.class.php index cb2c87e..357868c 100644 --- a/lib/classes/exportdocument/ExportPDF.class.php +++ b/lib/classes/exportdocument/ExportPDF.class.php @@ -13,6 +13,8 @@ * @category Stud.IP */ +define('K_PATH_IMAGES', $GLOBALS['STUDIP_BASE_PATH'] . '/public/assets/images/'); + /** * Class to create an PDF by putting in Stud.IP-formatted code. * Usage: @@ -260,9 +262,8 @@ class ExportPDF extends TCPDF implements ExportDocument { * @param string $hs string to print on document header */ public function setHeaderData($ln = '', $lw = 0, $ht = '', $hs = '', $tc = [], $lc = []) { - $logo_path = Config::get()->PDF_LOGO; if (!$ln) { - $ln = $logo_path ? $logo_path : '../../../../public/assets/images/logos/logoklein.png'; + $ln = Config::get()->PDF_LOGO ?: 'logos/logoklein.png'; } $lw = 30; $ht = ($ht == '' ? $this->h_title : $ht); |
