Browse Source

Problème lcliip

feature/export_comptable
Guillaume 4 years ago
parent
commit
f3e7fc796b
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      ShopBundle/Twig/FrontendTwigExtension.php

+ 5
- 5
ShopBundle/Twig/FrontendTwigExtension.php View File

@@ -67,7 +67,6 @@ class FrontendTwigExtension extends AbstractExtension

public function lcLiip($path, $thumb = 'tile', $default = 'default.jpg')
{
die('a') ;
if (substr($path, 0, 1) === '/') $path = substr($path, 1);

if ($path) {
@@ -77,11 +76,12 @@ class FrontendTwigExtension extends AbstractExtension
$path = $fileManagerFolder . '/' . $path;
}

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

return $this->liipCacheHelper->getBrowserPath($this->getFileManagerFolder() . '/' . $default, $thumb);
if (file_exists($path)) {
return $this->liipCacheHelper->getBrowserPath($path, $thumb);
}
}

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

/**

Loading…
Cancel
Save