correct segment

This commit is contained in:
Andrey Kuvshinov
2020-04-23 22:02:00 +03:00
parent 67ddf0748e
commit 930faa9691

View File

@@ -45,7 +45,7 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
$cachefile = PDFDIR.$namefile; $cachefile = PDFDIR.$namefile;
if (file_exists($pgfile)){ if (file_exists($pgfile)){
$pdfile = '/pages/'.$hash.'/'.$hash.'-'.$page.'.pdf'; $pdfile = 'pages/'.$hash.'/'.$hash.'-'.$page.'.pdf';
} }
elseif (file_exists($cachefile)){ elseif (file_exists($cachefile)){
$pdfile = '/pdf/'.$namefile; $pdfile = '/pdf/'.$namefile;