add PGDIR

This commit is contained in:
Andrey Kuvshinov
2020-04-23 17:50:17 +03:00
parent 9bcbed8928
commit 08c0f274a4
2 changed files with 2 additions and 1 deletions

View File

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