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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15192 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-05-10 16:30:32 +00:00
parent 630e92cda3
commit 20f7718a9c
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'));