|
|
@@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
/** |