diff --git a/modules/blocksharefb/blocksharefb.php b/modules/blocksharefb/blocksharefb.php index c34bd8b54..123d6f4e7 100644 --- a/modules/blocksharefb/blocksharefb.php +++ b/modules/blocksharefb/blocksharefb.php @@ -19,7 +19,8 @@ * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA -* @copyright 2007-2013 PrestaShop SA +* @copyright 2007-2013 PrestaShop SA + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ @@ -63,7 +64,7 @@ class blocksharefb extends Module if (isset($id_product) && $id_product != '') { - $product_infos = new Product((int)$id_product, true, $cookie->id_lang); + $product_infos = $this->context->controller->getProduct(); $smarty->assign(array( 'product_link' => urlencode($link->getProductLink($product_infos)), 'product_title' => urlencode($product_infos->name),