Merge pull request #901 from kpodemski/patch-11
[*] MO: blocksharefb optimization
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* @author PrestaShop SA <contact@prestashop.com>
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
* @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)
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*/
|
*/
|
||||||
@@ -63,7 +64,7 @@ class blocksharefb extends Module
|
|||||||
|
|
||||||
if (isset($id_product) && $id_product != '')
|
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(
|
$smarty->assign(array(
|
||||||
'product_link' => urlencode($link->getProductLink($product_infos)),
|
'product_link' => urlencode($link->getProductLink($product_infos)),
|
||||||
'product_title' => urlencode($product_infos->name),
|
'product_title' => urlencode($product_infos->name),
|
||||||
|
|||||||
Reference in New Issue
Block a user