diff options
Diffstat (limited to 'inc/poche/Routing.class.php')
-rwxr-xr-x | inc/poche/Routing.class.php | 13 |
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 | } |