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();
|
$html = $layout->render();
|
||||||
|
|
||||||
$imgDir = Url::fromPath('img');
|
$imgDir = Url::fromPath('img');
|
||||||
|
$html = preg_replace('~src="' . $imgDir . '/~', 'src="' . Icinga::app()->getBootstrapDirecory() . '/img/', $html);
|
||||||
$html = preg_replace('~src="' . $imgDir . '/~', 'src="' . Icinga::app()->getBootstrapDirecory() . $imgDir . '/', $html);
|
|
||||||
//echo $html; exit;
|
//echo $html; exit;
|
||||||
$this->load_html($html);
|
$this->load_html($html);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue