]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
add mobi and pdf to routing
authortcit <tcit@tcit.fr>
Thu, 24 Jul 2014 13:59:08 +0000 (15:59 +0200)
committertcit <tcit@tcit.fr>
Thu, 24 Jul 2014 13:59:08 +0000 (15:59 +0200)
inc/poche/Routing.class.php

index 2db57d1275e2b3d20f094cc659951315bc300161..e01d8129198c0ccf4bef469f4878e9935382704c 100644 (file)
@@ -112,7 +112,13 @@ class Routing
             $this->wallabag->deleteUser($_POST['password4deletinguser']);
         } elseif (isset($_GET['epub'])) {
             $epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['value']);
-            $epub->run();
+            $epub->produceEpub();
+        } elseif (isset($_GET['mobi'])) {
+            $mobi = new WallabagMobi($this->wallabag, $_GET['method'], $_GET['value']);
+            $mobi->produceMobi();
+        } elseif (isset($_GET['pdf'])) {
+            $pdf = new WallabagPDF($this->wallabag, $_GET['method'], $_GET['value']);
+            $pdf->producePDF();
         } elseif (isset($_GET['import'])) {
             $import = $this->wallabag->import();
             $tplVars = array_merge($this->vars, $import);