add pgfile
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user