// BugFix : Problems with blockcart
This commit is contained in:
@@ -644,9 +644,6 @@ class FrontControllerCore extends Controller
|
||||
'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,
|
||||
'content_only' => (int)Tools::getValue('content_only')
|
||||
));
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function initFooter()
|
||||
|
||||
+9
-1
@@ -85,7 +85,15 @@ class LinkCore
|
||||
$url .= $this->getLangLink($id_lang);
|
||||
|
||||
if (!is_object($product))
|
||||
$product = new Product($product, false, $id_lang);
|
||||
{
|
||||
if (is_array($product) && isset($product['id_product']))
|
||||
$product = new Product((int)$product['id_product'], false, $id_lang);
|
||||
else if(is_numeric($product))
|
||||
$product = new Product((int)$product, false, $id_lang);
|
||||
else
|
||||
throw new PrestashopException('Invalid product vars');
|
||||
}
|
||||
|
||||
|
||||
// Set available keywords
|
||||
$params = array();
|
||||
|
||||
Reference in New Issue
Block a user