]> _ Git - cubeextranet.git/commitdiff
fix #1798 @2
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 17 Nov 2017 14:28:04 +0000 (14:28 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 17 Nov 2017 14:28:04 +0000 (14:28 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index ace9c99ca21765f202f0f3e33ef6ef7cc919b48b..bdf3e605a1ace02e53acdf98fc68cc00905b75eb 100644 (file)
@@ -1101,7 +1101,6 @@ class wsHTML5Compiler {
                                                $this->maxRes = 150;
                                        }
                                }
-                               $this->vdir->copy(WS_DOCS . '/' . $infos['document_id'] . '/p' . $infos['document_page'] . '.jpg', 'data/thumbnails/p' . $page . '.jpg');
                        }
 
                        $thumb = false;
@@ -1113,6 +1112,7 @@ class wsHTML5Compiler {
                        }
 
                        $thumbs[$page] = $thumb;
+                       $this->vdir->copy($thumb, 'data/thumbnails/p' . $page . '.jpg');
 
                        if ($page == 1) {
                                $this->_makeCover($docdir . 'html/t36-' . $infos['document_page'] . '.jpg');