瀏覽代碼

Correctif lcLiip

master
Guillaume 4 年之前
父節點
當前提交
df17dedbd4
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. +3
    -5
      ShopBundle/Twig/FrontendTwigExtension.php

+ 3
- 5
ShopBundle/Twig/FrontendTwigExtension.php 查看文件

@@ -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…
取消
儲存