diff --git a/inc/poche/Routing.class.php b/inc/poche/Routing.class.php index 004bd45a9..0b3730580 100755 --- a/inc/poche/Routing.class.php +++ b/inc/poche/Routing.class.php @@ -124,8 +124,6 @@ class Routing } elseif (isset($_GET['import'])) { $import = $this->wallabag->import(); $tplVars = array_merge($this->vars, $import); - } elseif (isset($_GET['download'])) { - Tools::downloadDb(); } elseif (isset($_GET['empty-cache'])) { Tools::emptyCache(); } elseif (isset($_GET['export'])) { diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 63137d765..55fedac8d 100755 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -294,21 +294,6 @@ final class Tools } } - /** - * Download the sqlite database - */ - public static function downloadDb() - { - header('Content-Disposition: attachment; filename="poche.sqlite.gz"'); - self::_status(200); - - header('Content-Transfer-Encoding: binary'); - header('Content-Type: application/octet-stream'); - echo gzencode(file_get_contents(STORAGE_SQLITE)); - - exit; - } - /** * Get the content for a given URL (by a call to FullTextFeed) * diff --git a/themes/baggy/config.twig b/themes/baggy/config.twig index e45c3218f..7bd229cbe 100755 --- a/themes/baggy/config.twig +++ b/themes/baggy/config.twig @@ -121,8 +121,6 @@
{% trans "You can click here to fetch content for articles with no content." %}
{% trans "Click here" %} {% trans "to download your database." %}
{% endif %}{% trans "Click here" %} {% trans "to export your wallabag data." %}
{% trans "Click here" %} {% trans "to download your database." %}
{% endif %}{% trans "Click here" %} {% trans "to export your wallabag data." %}