From 538703df9b6a368b0b709b2cd5c990774ddccc55 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 5 Jun 2023 15:10:16 +0000 Subject: [PATCH] wip #5991 --- inc/ws/Metier/class.ws.document.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/ws/Metier/class.ws.document.php b/inc/ws/Metier/class.ws.document.php index fec0cc9b5..f970a59a7 100644 --- a/inc/ws/Metier/class.ws.document.php +++ b/inc/ws/Metier/class.ws.document.php @@ -440,7 +440,7 @@ class wsDocument extends cubeMetier $this->getFilesData(); $cacheKey = md5($page . '||' . $format . '$$' . $quality . '//' . $resolution . '""' . ($withText ? '1' : '0') . '---' . ($withGraphics ? '1' : '0') . '%%' . $version); if ($force || !isset($this->filesdata[$cacheKey]) || !$this->filesdata[$cacheKey]) { - $res=$this->_getFile($page, $format, $resolution, $quality, $withText, $withGraphics, $version, $force); + $res = $this->_getFile($page, $format, $resolution, $quality, $withText, $withGraphics, $version, $force); $this->filesdata[$cacheKey] = $res; } return $this->filesdata[$cacheKey]; @@ -579,7 +579,7 @@ class wsDocument extends cubeMetier $q = ($format === 'jpg' && $quality != 85) ? $quality : ''; $prefix = $withText ? 't' : 'h'; if ($resolution === 'thumb') { - $file = $dir . 'p' . $page . '.' . $format; + $file = $dir . 'p' . $page . $q . '.' . $format; } else { $file = $dir . $prefix . $page . '-' . $resolution . $q . '.' . $format; } -- 2.39.5