diff --git a/app/modules/anpdf/anpdf.php b/app/modules/anpdf/anpdf.php index 1118c26..0d29d10 100644 --- a/app/modules/anpdf/anpdf.php +++ b/app/modules/anpdf/anpdf.php @@ -41,9 +41,13 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){ } $namefile = $hash.'.pdf'; + $pgfile = PGDIR.$hash.'/'.$hash.'-'.$page.'.pdf'; $cachefile = PDFDIR.$namefile; - if (file_exists($cachefile)){ + if (file_exists($pgfile)){ + $pdfile = '/pages/'.$pgfile; + } + elseif (file_exists($cachefile)){ $pdfile = '/pdf/'.$namefile; } else {