Pārlūkot izejas kodu

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/LcShopBundle into develop

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

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

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

if ($path) {
$fileManagerFolder = substr($this->getFileManagerFolder(), 1);
$fileManagerFolder = substr($this->getFileManagerFolder(), 1) ;

if (strpos($path, $fileManagerFolder) === false) {
$path = $fileManagerFolder . '/' . $path;
}
//dump(file_exists($path));
if (file_exists($path)) {
return $this->liipCacheHelper->getBrowserPath($path, $thumb);
}

}

return $this->liipCacheHelper->getBrowserPath($this->getFileManagerFolder() . '/' . $default, $thumb);

}

/**

Notiek ielāde…
Atcelt
Saglabāt