Skip to content
Snippets Groups Projects
Commit 1c265b7f authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

fix path to logo in ExportPDF class, fixes #3021

Closes #3021

Merge request studip/studip!2028
parent 0f31f705
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
* @category Stud.IP * @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. * Class to create an PDF by putting in Stud.IP-formatted code.
* Usage: * Usage:
...@@ -260,9 +262,8 @@ class ExportPDF extends TCPDF implements ExportDocument { ...@@ -260,9 +262,8 @@ class ExportPDF extends TCPDF implements ExportDocument {
* @param string $hs string to print on document header * @param string $hs string to print on document header
*/ */
public function setHeaderData($ln = '', $lw = 0, $ht = '', $hs = '', $tc = [], $lc = []) { public function setHeaderData($ln = '', $lw = 0, $ht = '', $hs = '', $tc = [], $lc = []) {
$logo_path = Config::get()->PDF_LOGO;
if (!$ln) { if (!$ln) {
$ln = $logo_path ? $logo_path : '../../../../public/assets/images/logos/logoklein.png'; $ln = Config::get()->PDF_LOGO ?: 'logos/logoklein.png';
} }
$lw = 30; $lw = 30;
$ht = ($ht == '' ? $this->h_title : $ht); $ht = ($ht == '' ? $this->h_title : $ht);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment