diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index bef043c..5e0fdb1 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -224,7 +224,7 @@ function read_kuri($hash, $page = 0, $promo = false, $version = null){ $count = $price['pages']; } - + //залита html версия книги if ($price['html'] == 'html'){ return readbook_kuri($hash, $page = 1); } @@ -241,6 +241,9 @@ function read_kuri($hash, $page = 0, $promo = false, $version = null){ $version = 'pdf'; } + //книжки только pdf :( + if ($price['category_id'] == 3) + $version = 'pdf';