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; } }