it's working in multidatabase
--HG-- extra : rebase_source : 3fc7d4958dfa971bf9f18354c4c98254ec2b82cf
This commit is contained in:
parent
3eb719cb02
commit
6d57778dc7
|
@ -65,6 +65,7 @@ class JSONRenderer
|
||||||
public static function getFullBookContentArray ($book) {
|
public static function getFullBookContentArray ($book) {
|
||||||
global $config;
|
global $config;
|
||||||
$out = self::getBookContentArray ($book);
|
$out = self::getBookContentArray ($book);
|
||||||
|
$database = GetUrlParam (DB);
|
||||||
|
|
||||||
$out ["coverurl"] = Data::getLink ($book, "jpg", "image/jpeg", Link::OPDS_IMAGE_TYPE, "cover.jpg", NULL)->hrefXhtml ();
|
$out ["coverurl"] = Data::getLink ($book, "jpg", "image/jpeg", Link::OPDS_IMAGE_TYPE, "cover.jpg", NULL)->hrefXhtml ();
|
||||||
$out ["thumbnailurl"] = Data::getLink ($book, "jpg", "image/jpeg", Link::OPDS_THUMBNAIL_TYPE, "cover.jpg", NULL, NULL, $config['cops_html_thumbnail_height'] * 2)->hrefXhtml ();
|
$out ["thumbnailurl"] = Data::getLink ($book, "jpg", "image/jpeg", Link::OPDS_THUMBNAIL_TYPE, "cover.jpg", NULL, NULL, $config['cops_html_thumbnail_height'] * 2)->hrefXhtml ();
|
||||||
|
@ -77,7 +78,7 @@ class JSONRenderer
|
||||||
$tab ["mail"] = 1;
|
$tab ["mail"] = 1;
|
||||||
}
|
}
|
||||||
if ($data->format == "EPUB") {
|
if ($data->format == "EPUB") {
|
||||||
$tab ["readerUrl"] = "epubreader.php?data={$data->id}&db=0"; //TODO fix the database
|
$tab ["readerUrl"] = "epubreader.php?data={$data->id}&db={$database}";
|
||||||
}
|
}
|
||||||
array_push ($out ["datas"], $tab);
|
array_push ($out ["datas"], $tab);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue