]> _ Git - cubeextranet.git/commitdiff
wait #5993
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 5 Jun 2023 13:49:18 +0000 (13:49 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 5 Jun 2023 13:49:18 +0000 (13:49 +0000)
inc/ws/Controlleur/class.ws.maintenance.php
inc/ws/Metier/class.ws.book.php

index afb8301830328f5f4e82c00378cf3aabd6ffdd9c..123d110477151db85e0d9e26de2e64ff5eccb792 100644 (file)
@@ -1475,7 +1475,7 @@ class wsMaintenance
         }
         $allPages = range(1, $count);
 
-        $coef = wsDocument::isFarmUser() ? 4 : 0.25;
+        $coef =4;
         $it = round($coef * max(4, min(12, ceil($count / 20))));
 
         shuffle($allPages);
index df1157b2d25c11d8da3afd1838ff5f574eb92497..8e5b9404090f77d15f97218fafceb29eda7ac69b 100644 (file)
@@ -91,7 +91,7 @@ class wsBook extends cubeMetier
             $dao = new wsDAODocument($core->con);\r
             $this->_docs[$p['document_id']] = $dao->selectById($p['document_id']);\r
         }\r
-        $q = $this->parametres->JPEGQuality ?: 85;\r
+        $q = $this->parametres->JPEGQuality ?? 85;\r
 \r
 \r
         $doc = $this->_docs[$p['document_id']];\r