From faa4a18a8295c9bdaceef11f3ff6f1a50ba3b5b5 Mon Sep 17 00:00:00 2001 From: Krystian Podemski Date: Mon, 28 Oct 2013 23:21:35 +0100 Subject: [PATCH] [*] MO: productcomments optimization --- modules/productcomments/productcomments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/productcomments/productcomments.php b/modules/productcomments/productcomments.php index 8dea3e02e..9556e3941 100644 --- a/modules/productcomments/productcomments.php +++ b/modules/productcomments/productcomments.php @@ -705,7 +705,7 @@ class ProductComments extends Module $this->context->smarty->assign(array( 'id_product_comment_form' => (int)Tools::getValue('id_product'), - 'product' => new Product((int)Tools::getValue('id_product'), false, $this->context->language->id), + 'product' => $this->context->controller->getProduct(), 'secure_key' => $this->secure_key, 'logged' => (int)$this->context->customer->isLogged(true), 'allow_guests' => (int)Configuration::get('PRODUCT_COMMENTS_ALLOW_GUESTS'),