correct books pdf in mobile

This commit is contained in:
Andrey Kuvshinov
2020-05-24 18:12:48 +03:00
parent 1d256b4297
commit 3f75aeb24f

View File

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