aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Routing.class.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2014-12-19 21:08:44 +0100
committerThomas Citharel <tcit@tcit.fr>2014-12-19 21:08:44 +0100
commit3dcd85c075998ecdf2d54c5661c42e24080067d5 (patch)
treeb939cdbf86c1be64ef64d8afb3efd0d55e8a945e /inc/poche/Routing.class.php
parent44b95cb81deae35f58e0058910afde2f2ffb9a60 (diff)
parente9a64ef8a9776becbe4c621ee4bd762f24b1bc3e (diff)
downloadwallabag-3dcd85c075998ecdf2d54c5661c42e24080067d5.tar.gz
wallabag-3dcd85c075998ecdf2d54c5661c42e24080067d5.tar.zst
wallabag-3dcd85c075998ecdf2d54c5661c42e24080067d5.zip
merge
Diffstat (limited to 'inc/poche/Routing.class.php')
-rwxr-xr-xinc/poche/Routing.class.php13
1 files changed, 11 insertions, 2 deletions
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
120 $this->wallabag->deleteUser($_POST['password4deletinguser']); 120 $this->wallabag->deleteUser($_POST['password4deletinguser']);
121 } elseif (isset($_GET['epub'])) { 121 } elseif (isset($_GET['epub'])) {
122 $epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['value']); 122 $epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['value']);
123 $epub->run(); 123 $epub->prepareData();
124 $epub->produceEpub();
125 } elseif (isset($_GET['mobi'])) {
126 $mobi = new WallabagMobi($this->wallabag, $_GET['method'], $_GET['value']);
127 $mobi->prepareData();
128 $mobi->produceMobi();
129 } elseif (isset($_GET['pdf'])) {
130 $pdf = new WallabagPDF($this->wallabag, $_GET['method'], $_GET['value']);
131 $pdf->prepareData();
132 $pdf->producePDF();
124 } elseif (isset($_GET['import'])) { 133 } elseif (isset($_GET['import'])) {
125 $import = $this->wallabag->import(); 134 $import = $this->wallabag->import();
126 $tplVars = array_merge($this->vars, $import); 135 $tplVars = array_merge($this->vars, $import);
@@ -148,4 +157,4 @@ class Routing
148 { 157 {
149 echo $this->wallabag->tpl->render($file, $vars); 158 echo $this->wallabag->tpl->render($file, $vars);
150 } 159 }
151} \ No newline at end of file 160}