// delete btn preview if the shop have not virtual_uri in AdminProductsController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10577 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-11-23 17:37:16 +00:00
parent 45fbdd8635
commit 5660c09d62
@@ -1912,7 +1912,8 @@ class AdminProductsControllerCore extends AdminController
public function getPreviewUrl(Product $product)
{
if (!(bool)$this->context->shop->virtual_uri)
$shop_url = new ShopUrl($this->context->shop->id);
if (!$shop_url->id && !empty($this->context->cookie->shopContext))
return false;
$preview_url = $this->context->link->getProductLink(