From aeb8506909877c9d95ae0a53940dc33f274b3800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 1 Jul 2012 20:44:58 +0200 Subject: [PATCH] Fix link in HTML catalog when your calibre library is nested --- data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data.php b/data.php index f8337b3..a5fb0d7 100644 --- a/data.php +++ b/data.php @@ -78,7 +78,7 @@ class Data extends Base { } else { - return str_replace ("&", "&", "fetch.php?id=" . $this->book->id . "&data=" . $this->id . "&type=" . $this->extension); + return self::getLink ($this->book, $this->extension, $this->getMimeType (), $rel, $this->getFilename (), $this->id, $title)->href; } }