Pārlūkot izejas kodu

Merge branch 'develop'

master
Fab pirms 4 gadiem
vecāks
revīzija
ed67e817d0
1 mainītis faili ar 7 papildinājumiem un 5 dzēšanām
  1. +7
    -5
      ShopBundle/Twig/FrontendTwigExtension.php

+ 7
- 5
ShopBundle/Twig/FrontendTwigExtension.php Parādīt failu

@@ -70,17 +70,19 @@ 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;
}
if (file_exists($path)) {
return $this->liipCacheHelper->getBrowserPath($path, $thumb);
}

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

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

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

}

/**

Notiek ielāde…
Atcelt
Saglabāt