From 47c5656dd6445a5e1cae78cdce32dc1f05dc6be9 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 --- .../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]);