|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function lcLiip($path, $thumb = 'tile', $default = 'default.jpg') |
|
|
public function lcLiip($path, $thumb = 'tile', $default = 'default.jpg') |
|
|
{ |
|
|
{ |
|
|
|
|
|
die('a') ; |
|
|
if (substr($path, 0, 1) === '/') $path = substr($path, 1); |
|
|
if (substr($path, 0, 1) === '/') $path = substr($path, 1); |
|
|
|
|
|
|
|
|
if ($path) { |
|
|
if ($path) { |
|
|
$fileManagerFolder = substr($this->getFileManagerFolder(), 1); |
|
|
|
|
|
|
|
|
$fileManagerFolder = substr($this->getFileManagerFolder(), 1) ; |
|
|
|
|
|
|
|
|
if (strpos($path, $fileManagerFolder) === false) { |
|
|
if (strpos($path, $fileManagerFolder) === false) { |
|
|
$path = $fileManagerFolder . '/' . $path; |
|
|
$path = $fileManagerFolder . '/' . $path; |
|
|
} |
|
|
} |
|
|
//dump(file_exists($path)); |
|
|
|
|
|
if (file_exists($path)) { |
|
|
|
|
|
return $this->liipCacheHelper->getBrowserPath($path, $thumb); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $this->liipCacheHelper->getBrowserPath($this->getFileManagerFolder() . '/' . $default, $thumb); |
|
|
|
|
|
|
|
|
return $this->liipCacheHelper->getBrowserPath($path, $thumb); |
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
return $this->liipCacheHelper->getBrowserPath($this->getFileManagerFolder() . '/' . $default, $thumb); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |