From 91c95d714644928b7b8d65e2b9594be5b613d729 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Wed, 14 Dec 2011 14:37:28 +0000 Subject: [PATCH] // fix bug tag image in AdminProductsController git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11206 b9a71923-0436-4b27-9f14-aed3839534dd --- .../themes/template/products/informations.tpl | 21 ++++++++++--------- controllers/front/ProductController.php | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/admin-dev/themes/template/products/informations.tpl b/admin-dev/themes/template/products/informations.tpl index c99215924..99f2af7d2 100644 --- a/admin-dev/themes/template/products/informations.tpl +++ b/admin-dev/themes/template/products/informations.tpl @@ -484,20 +484,20 @@ var textFieldLabel = 0; {/if} diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index 45c2fb863..f84afbd4d 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -440,7 +440,7 @@ class ProductControllerCore extends FrontController public function transformDescriptionWithImg($desc) { - $reg = '/{img-([0-9]+)-(left|right)-([a-z]+)}/'; + $reg = '/\[img-([0-9]+)-(left|right)-([a-z]+)\]/'; while (preg_match($reg, $desc, $matches)) { $link_lmg = $this->context->link->getImageLink($this->product->link_rewrite, $this->product->id.'-'.$matches[1], $matches[3]);