Skip to content

Commit

Permalink
Finish .kepub.epub download. fix #39
Browse files Browse the repository at this point in the history
  • Loading branch information
seblucas committed Feb 26, 2013
1 parent 3f69f79 commit 02c2570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public function getUpdatedEpub ($idData)
$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 ());
Expand Down

0 comments on commit 02c2570

Please sign in to comment.