Update HTML links to the new methods

This commit is contained in:
Sébastien Lucas 2012-06-26 14:45:09 +02:00
parent 4473037ae8
commit 2d83cd6e78
4 changed files with 19 additions and 4 deletions

View file

@ -47,6 +47,10 @@ class Data extends Base {
return self::getLink ($this->book, $this->extension, $this->getMimeType (), $rel, $this->getFilename (), $this->id, $title);
}
public function getHtmlLink () {
return "download/" . $this->id . "/" . urlencode ($this->getFilename ());
}
public static function getLink ($book, $type, $mime, $rel, $filename, $idData, $title = NULL)
{
global $config;