X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=inc%2Fpoche%2FRouting.class.php;h=5acd08ba608d0704b8d6a76e2152363ba4afe808;hb=dc69d3e8d895c87f9d26c2d1309e40d6090d4c8d;hp=6ae93d21d7622d552709d98ccd5ce743bcfc7a71;hpb=9c55ed0923273da886497cb62302a79622e34a74;p=github%2Fwallabag%2Fwallabag.git diff --git a/inc/poche/Routing.class.php b/inc/poche/Routing.class.php index 6ae93d21..5acd08ba 100755 --- a/inc/poche/Routing.class.php +++ b/inc/poche/Routing.class.php @@ -120,7 +120,16 @@ class Routing $this->wallabag->deleteUser($_POST['password4deletinguser']); } elseif (isset($_GET['epub'])) { $epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['value']); - $epub->run(); + $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(); $tplVars = array_merge($this->vars, $import); @@ -148,4 +157,4 @@ class Routing { echo $this->wallabag->tpl->render($file, $vars); } -} \ No newline at end of file +}