mirror of
https://github.com/moparisthebest/wallabag
synced 2025-02-19 20:41:48 -05:00
add mobi and pdf to routing
This commit is contained in:
parent
15317991f3
commit
c70bfefc68
@ -112,7 +112,13 @@ class Routing
|
|||||||
$this->wallabag->deleteUser($_POST['password4deletinguser']);
|
$this->wallabag->deleteUser($_POST['password4deletinguser']);
|
||||||
} elseif (isset($_GET['epub'])) {
|
} elseif (isset($_GET['epub'])) {
|
||||||
$epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['value']);
|
$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'])) {
|
} elseif (isset($_GET['import'])) {
|
||||||
$import = $this->wallabag->import();
|
$import = $this->wallabag->import();
|
||||||
$tplVars = array_merge($this->vars, $import);
|
$tplVars = array_merge($this->vars, $import);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user