From 70be82821906810198fe3b338dffe3df09df0cfa Mon Sep 17 00:00:00 2001 From: nezenmoins Date: Mon, 11 Feb 2013 11:33:06 +0100 Subject: [PATCH] [-] PDF : Fixed unecessary slash in manufacturer image path test In the file_exists test of the manufacturer image path there is an unecessary slash after the constant _PS_MANU_IMG_DIR_, and then we can't display a specific manufacturer image. --- controllers/front/ManufacturerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/ManufacturerController.php b/controllers/front/ManufacturerController.php index e5e73bb3a..4901eb374 100644 --- a/controllers/front/ManufacturerController.php +++ b/controllers/front/ManufacturerController.php @@ -116,7 +116,7 @@ class ManufacturerControllerCore extends FrontController $this->pagination($nbProducts); foreach ($data as &$item) - $item['image'] = (!file_exists(_PS_MANU_IMG_DIR_.'/'.$item['id_manufacturer'].'-'.ImageType::getFormatedName('medium').'.jpg')) ? $this->context->language->iso_code.'-default' : $item['id_manufacturer']; + $item['image'] = (!file_exists(_PS_MANU_IMG_DIR_.$item['id_manufacturer'].'-'.ImageType::getFormatedName('medium').'.jpg')) ? $this->context->language->iso_code.'-default' : $item['id_manufacturer']; $this->context->smarty->assign(array( 'pages_nb' => ceil($nbProducts / (int)($this->n)),