From b72f2a7176649ed5dba605b6f4d5e968e75ff15a Mon Sep 17 00:00:00 2001 From: gr4devel Date: Thu, 29 Aug 2013 21:48:32 +0200 Subject: [PATCH] [+] FO : add getManufacturer() to ManufacturerControllerCore Add getManufacturer() to ManufacturerControllerCore to access the protected manufacturer instance of the controller. --- controllers/front/ManufacturerController.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/controllers/front/ManufacturerController.php b/controllers/front/ManufacturerController.php index dbc2f3b2a..4cc8d6b62 100644 --- a/controllers/front/ManufacturerController.php +++ b/controllers/front/ManufacturerController.php @@ -134,4 +134,12 @@ class ManufacturerControllerCore extends FrontController else $this->context->smarty->assign('nbManufacturers', 0); } -} \ No newline at end of file + + /** + * Get instance of current manufacturer + */ + public function getManufacturer() + { + return $this->manufacturer; + } +}