aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-07-24 15:59:08 +0200
committertcit <tcit@tcit.fr>2014-07-24 15:59:08 +0200
commitc70bfefc68fcc96b1ce57845e5b2942a596239ec (patch)
tree891faf8e70dba85789689abf666bbb509f201347
parent15317991f3ff456e6e215947402a0dcfd951e0df (diff)
downloadwallabag-c70bfefc68fcc96b1ce57845e5b2942a596239ec.tar.gz
wallabag-c70bfefc68fcc96b1ce57845e5b2942a596239ec.tar.zst
wallabag-c70bfefc68fcc96b1ce57845e5b2942a596239ec.zip
add mobi and pdf to routing
-rw-r--r--inc/poche/Routing.class.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/poche/Routing.class.php b/inc/poche/Routing.class.php
index 2db57d12..e01d8129 100644
--- a/inc/poche/Routing.class.php
+++ b/inc/poche/Routing.class.php
@@ -112,7 +112,13 @@ class Routing
112 $this->wallabag->deleteUser($_POST['password4deletinguser']); 112 $this->wallabag->deleteUser($_POST['password4deletinguser']);
113 } elseif (isset($_GET['epub'])) { 113 } elseif (isset($_GET['epub'])) {
114 $epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['value']); 114 $epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['value']);
115 $epub->run(); 115 $epub->produceEpub();
116 } elseif (isset($_GET['mobi'])) {
117 $mobi = new WallabagMobi($this->wallabag, $_GET['method'], $_GET['value']);
118 $mobi->produceMobi();
119 } elseif (isset($_GET['pdf'])) {
120 $pdf = new WallabagPDF($this->wallabag, $_GET['method'], $_GET['value']);
121 $pdf->producePDF();
116 } elseif (isset($_GET['import'])) { 122 } elseif (isset($_GET['import'])) {
117 $import = $this->wallabag->import(); 123 $import = $this->wallabag->import();
118 $tplVars = array_merge($this->vars, $import); 124 $tplVars = array_merge($this->vars, $import);