From cd1266012da5f778841769638c09550cbbe0b0d7 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Mon, 27 Aug 2012 10:16:22 +0000 Subject: [PATCH] // Fixed logo in PDF #PSCFV-3759 --- classes/pdf/HTMLTemplate.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/classes/pdf/HTMLTemplate.php b/classes/pdf/HTMLTemplate.php index b447d3e8b..c6ff1312d 100755 --- a/classes/pdf/HTMLTemplate.php +++ b/classes/pdf/HTMLTemplate.php @@ -114,11 +114,10 @@ abstract class HTMLTemplateCore // we don't use _PS_ROOT_DIR_ and we let TCPDF add the document root. $physical_uri = Context::getContext()->shop->physical_uri.'img/'; - if (Configuration::get('PS_LOGO_INVOICE') != false && file_exists($physical_uri.Configuration::get('PS_LOGO_INVOICE'))) + if (Configuration::get('PS_LOGO_INVOICE') != false && file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO_INVOICE'))) $logo = $physical_uri.Configuration::get('PS_LOGO_INVOICE'); - else if (Configuration::get('PS_LOGO') != false && file_exists($physical_uri.Configuration::get('PS_LOGO'))) + elseif (Configuration::get('PS_LOGO') != false && file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO'))) $logo = $physical_uri.Configuration::get('PS_LOGO'); - return $logo; }