From d575356df139b0705ed883c03da9c31794f544e3 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 7 Mar 2014 15:14:48 +0000 Subject: [PATCH] Fix PDF image path resolution for Icingaweb in Apache subdirs --- library/Icinga/File/Pdf.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/Icinga/File/Pdf.php b/library/Icinga/File/Pdf.php index 4acffcf7b..951b4ec1a 100644 --- a/library/Icinga/File/Pdf.php +++ b/library/Icinga/File/Pdf.php @@ -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);