mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Fix PDF image path resolution for Icingaweb in Apache subdirs
This commit is contained in:
parent
be43014e0c
commit
d575356df1
@ -68,8 +68,7 @@ class Pdf extends DOMPDF
|
||||
$html = $layout->render();
|
||||
|
||||
$imgDir = Url::fromPath('img');
|
||||
|
||||
$html = preg_replace('~src="' . $imgDir . '/~', 'src="' . Icinga::app()->getBootstrapDirecory() . $imgDir . '/', $html);
|
||||
$html = preg_replace('~src="' . $imgDir . '/~', 'src="' . Icinga::app()->getBootstrapDirecory() . '/img/', $html);
|
||||
//echo $html; exit;
|
||||
$this->load_html($html);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user