Enable kepub.epub download. re #39
This commit is contained in:
parent
0d1506a078
commit
4bce0d3349
5 changed files with 44 additions and 21 deletions
4
book.php
4
book.php
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue