//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:
lLefevre
2011-09-28 08:26:46 +00:00
parent c97115fd98
commit c304a2c620
3 changed files with 201 additions and 245 deletions
+3 -3
View File
@@ -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;
}