Browse Source

Backend : correction affichage des images dans les formulaires

master
Guillaume 4 years ago
parent
commit
2b7c4ba33c
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      ShopBundle/Twig/FrontendTwigExtension.php

+ 4
- 2
ShopBundle/Twig/FrontendTwigExtension.php View File

if (substr($path, 0, 1) === '/') $path = substr($path, 1); if (substr($path, 0, 1) === '/') $path = substr($path, 1);


if ($path) { if ($path) {
if (strpos($path, $this->getFileManagerFolder()) === false) {
$path = $this->getFileManagerFolder() . '/' . $path;
$fileManagerFolder = substr($this->getFileManagerFolder(), 1) ;

if (strpos($path, $fileManagerFolder) === false) {
$path = $fileManagerFolder . '/' . $path;
} }


return $this->liipCacheHelper->getBrowserPath($path, $thumb); return $this->liipCacheHelper->getBrowserPath($path, $thumb);

Loading…
Cancel
Save