//fix correction norm in AdminProducts
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8830 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -359,10 +359,10 @@ class ProductControllerCore extends FrontController
|
||||
$reg = '/{img-([0-9]+)-(left|right)-([a-z]+)}/';
|
||||
while (preg_match($reg, $desc, $matches))
|
||||
{
|
||||
$linkImg = $this->context->link->getImageLink($this->product->link_rewrite, $this->product->id.'-'.$matches[1], $matches[3]);
|
||||
$link_lmg = $this->context->link->getImageLink($this->product->link_rewrite, $this->product->id.'-'.$matches[1], $matches[3]);
|
||||
$class = $matches[2] == 'left' ? 'class="imageFloatLeft"' : 'class="imageFloatRight"';
|
||||
$htmlImg = '<img src="'.$linkImg.'" alt="" '.$class.'/>';
|
||||
$desc = str_replace($matches[0], $htmlImg, $desc);
|
||||
$html_img = '<img src="'.$link_lmg.'" alt="" '.$class.'/>';
|
||||
$desc = str_replace($matches[0], $html_img, $desc);
|
||||
}
|
||||
return $desc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user