Enable kepub.epub download. re #39

This commit is contained in:
Sébastien Lucas 2013-02-05 21:08:28 +01:00
parent 0d1506a078
commit 4bce0d3349
5 changed files with 44 additions and 21 deletions

View file

@ -298,6 +298,7 @@ class Book extends Base {
public function getUpdatedEpub ($idData)
{
global $config;
$data = $this->getDataById ($idData);
try
@ -320,6 +321,9 @@ class Book extends Base {
$epub->Serie ($se->name);
$epub->SerieIndex ($this->seriesIndex);
}
if ($config['cops_provide_kepub'] == "1") {
$epub->updateForKepub ();
}
$epub->download ($data->getUpdatedFilenameEpub ());
}
catch (Exception $e)