]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Routing.class.php
use directly MOBIClass
[github/wallabag/wallabag.git] / inc / poche / Routing.class.php
index e01d8129198c0ccf4bef469f4878e9935382704c..83eabf1989bf2e752730c6e98143a26910db9e0f 100644 (file)
@@ -112,12 +112,15 @@ class Routing
             $this->wallabag->deleteUser($_POST['password4deletinguser']);
         } elseif (isset($_GET['epub'])) {
             $epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['value']);
+            $epub->prepareData();
             $epub->produceEpub();
         } elseif (isset($_GET['mobi'])) {
             $mobi = new WallabagMobi($this->wallabag, $_GET['method'], $_GET['value']);
+            $mobi->prepareData();
             $mobi->produceMobi();
         } elseif (isset($_GET['pdf'])) {
             $pdf = new WallabagPDF($this->wallabag, $_GET['method'], $_GET['value']);
+            $pdf->prepareData();
             $pdf->producePDF();
         } elseif (isset($_GET['import'])) {
             $import = $this->wallabag->import();