Sfoglia il codice sorgente

Correctif lcLiip

reduction
Guillaume 4 anni fa
parent
commit
053b170410
1 ha cambiato i file con 3 aggiunte e 5 eliminazioni
  1. +3
    -5
      ShopBundle/Twig/FrontendTwigExtension.php

+ 3
- 5
ShopBundle/Twig/FrontendTwigExtension.php Vedi File

@@ -67,14 +67,12 @@ class FrontendTwigExtension extends AbstractExtension

public function lcLiip($path, $thumb = 'tile', $default = 'default.jpg')
{

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

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

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

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

Loading…
Annulla
Salva