|
|
|
|
|
|
|
|
if (substr($path, 0, 1) === '/') $path = substr($path, 1); |
|
|
if (substr($path, 0, 1) === '/') $path = substr($path, 1); |
|
|
|
|
|
|
|
|
if ($path) { |
|
|
if ($path) { |
|
|
if (strpos($path, $this->getFileManagerFolder()) === false) { |
|
|
|
|
|
$path = $this->getFileManagerFolder() . '/' . $path; |
|
|
|
|
|
|
|
|
$fileManagerFolder = substr($this->getFileManagerFolder(), 1) ; |
|
|
|
|
|
|
|
|
|
|
|
if (strpos($path, $fileManagerFolder) === false) { |
|
|
|
|
|
$path = $fileManagerFolder . '/' . $path; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return $this->liipCacheHelper->getBrowserPath($path, $thumb); |
|
|
return $this->liipCacheHelper->getBrowserPath($path, $thumb); |