From 3c29de925d816210b5e42601967120cad824f5b0 Mon Sep 17 00:00:00 2001 From: gloas <gloas@afi-sa.fr> Date: Tue, 10 Jul 2018 14:03:25 +0200 Subject: [PATCH] hotline #76959 use path instead of realpath in thumbnailing --- VERSIONS_HOTLINE/76959 | 1 + library/ZendAfi/View/Helper/Thumbnail.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 VERSIONS_HOTLINE/76959 diff --git a/VERSIONS_HOTLINE/76959 b/VERSIONS_HOTLINE/76959 new file mode 100644 index 00000000000..0cdd60cef79 --- /dev/null +++ b/VERSIONS_HOTLINE/76959 @@ -0,0 +1 @@ + - ticket #76959 : Vignettes manquantes dans kiosque notices \ No newline at end of file diff --git a/library/ZendAfi/View/Helper/Thumbnail.php b/library/ZendAfi/View/Helper/Thumbnail.php index 3681ae42457..137751d0e5d 100644 --- a/library/ZendAfi/View/Helper/Thumbnail.php +++ b/library/ZendAfi/View/Helper/Thumbnail.php @@ -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); -- GitLab