From 11e6f2ce8fa4e3194c8c68f9e12a2878b0ca9932 Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Sun, 24 May 2020 21:14:12 +0300 Subject: [PATCH] correct count pages in book --- app/routes/anpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index 5e0fdb1..204aefa 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -411,7 +411,7 @@ function readbook_kuri($hash, $page = 1){ $html = convert2html($htmlfile); $razmer = strlen($html); - $count = ceil($razmer / $limit); + $count = floor($razmer / $limit); // $html .= convert2html($dir.'chapter-1.xhtml'); $pagehtml = pagehtml($html, $page, $limit);