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]);