Skip to content
Snippets Groups Projects
Commit 3c29de92 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #76959 use path instead of realpath in thumbnailing

parent b0707b71
Branches
Tags
2 merge requests!2746Hotline,!2727Hotline#76959 vignettes manquantes dans kiosque notices
Pipeline #4555 passed with stage
in 51 minutes and 30 seconds
- ticket #76959 : Vignettes manquantes dans kiosque notices
\ No newline at end of file
......@@ -31,7 +31,7 @@ class ZendAfi_View_Helper_Thumbnail extends ZendAfi_View_Helper_BaseHelper {
$thumb_path_pattern = sprintf('temp/thumbnails/file-manager/%sx%s', $width, $height);
$thumb_path = str_replace($instance->getParentPath(),
$thumb_path_pattern,
$instance->getRealpath());
$instance->getPath());
$thumb_parent_path = explode('/', $thumb_path);
array_pop($thumb_parent_path);
......@@ -47,7 +47,7 @@ class ZendAfi_View_Helper_Thumbnail extends ZendAfi_View_Helper_BaseHelper {
if(!$this->getFileWriter()->fileExists($thumb_parent_path))
$this->getFileWriter()->mkdir($thumb_parent_path, 0755, true);
if(!(new Class_Notice_Thumbnail_ResizeImage)->resize($instance->getRealpath(), $width, $height, $thumb_path))
if(!(new Class_Notice_Thumbnail_ResizeImage)->resize($instance->getPath(), $width, $height, $thumb_path))
return '';
return $this->view->tagImg($thumb_url);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment