// Fixed logo in PDF #PSCFV-3759

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17014 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-27 10:16:22 +00:00
parent 40301f8d6b
commit bc5a853b3c
+2 -3
View File
@@ -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;
}