From 1d256b42972ae47ca49752bffa79a23e6d345673 Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Sun, 24 May 2020 18:00:17 +0300 Subject: [PATCH] correct count --- app/routes/anpdf.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index 966fbab..bef043c 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -405,11 +405,10 @@ function readbook_kuri($hash, $page = 1){ $count = 20; - $html = convert2html($htmlfile); $razmer = strlen($html); - $count = $razmer / $limit; + $count = ceil($razmer / $limit); // $html .= convert2html($dir.'chapter-1.xhtml'); $pagehtml = pagehtml($html, $page, $limit);