[-] BO : #PSCFV-1786 : fix size logo for PDF invoice

This commit is contained in:
lLefevre
2012-05-10 16:30:32 +00:00
parent f53434657f
commit 3a31fc80ad
2 changed files with 10 additions and 5 deletions
+7 -2
View File
@@ -47,13 +47,18 @@ abstract class HTMLTemplateCore
if (Validate::isLoadedObject($this->shop))
$shop_name = $this->shop->name;
$path_logo = $this->getLogo();
list($width, $height) = getimagesize(_PS_BASE_URL_.$path_logo);
$this->smarty->assign(array(
'logo_path' => $this->getLogo(),
'logo_path' => $path_logo,
'img_ps_dir' => 'http://'.Tools::getMediaServer(_PS_IMG_)._PS_IMG_,
'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'),
'title' => $this->title,
'date' => $this->date,
'shop_name' => $shop_name
'shop_name' => $shop_name,
'width_logo' => $width,
'height_logo' => $height
));
return $this->smarty->fetch($this->getTemplate('header'));