From 67ddf0748e5a5741f4437de076036829c1bebb13 Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Thu, 23 Apr 2020 22:00:17 +0300 Subject: [PATCH] correct segment path --- app/modules/anpdf/anpdf.php | 2 +- app/modules/anpdf/anpdf2.phtml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/modules/anpdf/anpdf.php b/app/modules/anpdf/anpdf.php index 0d29d10..d0270b6 100644 --- a/app/modules/anpdf/anpdf.php +++ b/app/modules/anpdf/anpdf.php @@ -45,7 +45,7 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){ $cachefile = PDFDIR.$namefile; if (file_exists($pgfile)){ - $pdfile = '/pages/'.$pgfile; + $pdfile = '/pages/'.$hash.'/'.$hash.'-'.$page.'.pdf'; } elseif (file_exists($cachefile)){ $pdfile = '/pdf/'.$namefile; diff --git a/app/modules/anpdf/anpdf2.phtml b/app/modules/anpdf/anpdf2.phtml index 016d80e..b060df0 100644 --- a/app/modules/anpdf/anpdf2.phtml +++ b/app/modules/anpdf/anpdf2.phtml @@ -16,8 +16,7 @@ pageRendering = false, pageNumPending = null, nexturl = '', - prevurl = ''; - pgfile = ''; + prevurl = '';