Pārlūkot izejas kodu

Backend : correction affichage des images dans les formulaires

master
Guillaume pirms 4 gadiem
vecāks
revīzija
2b7c4ba33c
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. +4
    -2
      ShopBundle/Twig/FrontendTwigExtension.php

+ 4
- 2
ShopBundle/Twig/FrontendTwigExtension.php Parādīt failu

@@ -70,8 +70,10 @@ class FrontendTwigExtension extends AbstractExtension
if (substr($path, 0, 1) === '/') $path = substr($path, 1);

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

Notiek ielāde…
Atcelt
Saglabāt