correct new pdf format
This commit is contained in:
@@ -207,6 +207,13 @@ function read_kuri($hash, $page = 0, $promo = 'full', $version = null){
|
||||
$file = PDFSOURCE."${price['price_id']}.pdf";
|
||||
$data = pdfs_init($file, $page);
|
||||
|
||||
if (!$data) {
|
||||
$text = '<p>Книга временно недоступна. Просим прощение за неудобство</p>';
|
||||
$tempcontent = $text; //подшаблон
|
||||
include VIEWPATH.'layout.phtml'; //центральный шаблон
|
||||
return;
|
||||
}
|
||||
|
||||
if ($price['pages'] == 0){
|
||||
$data['pages'] = pdfs_count($file);
|
||||
$count = $data['pages'];
|
||||
|
||||
Reference in New Issue
Block a user