Finish .kepub.epub download. fix #39

This commit is contained in:
Sébastien Lucas 2013-02-26 17:33:18 +01:00
parent 3f69f79651
commit 02c25705cf

View file

@ -330,7 +330,7 @@ class Book extends Base {
$epub->Serie ($se->name);
$epub->SerieIndex ($this->seriesIndex);
}
if ($config['cops_provide_kepub'] == "1") {
if ($config['cops_provide_kepub'] == "1" && preg_match("/Kobo/", $_SERVER['HTTP_USER_AGENT'])) {
$epub->updateForKepub ();
}
$epub->download ($data->getUpdatedFilenameEpub ());