Fix PDF image path resolution for Icingaweb in Apache subdirs

This commit is contained in:
Thomas Gelf 2014-03-07 15:14:48 +00:00
parent be43014e0c
commit d575356df1
1 changed files with 1 additions and 2 deletions

View File

@ -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);