]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/store/sqlite.class.php
new design, pagination & more
[github/wallabag/wallabag.git] / inc / store / sqlite.class.php
index a15bc095b4a2e8c248e9baa4b563017190f45f9b..3e391e4035713f4f01dc22f6d78c0296a6e034d6 100644 (file)
@@ -114,7 +114,7 @@ class Sqlite extends Store {
         return $entry[0];
     }
 
-    public function getEntriesByView($view) {
+    public function getEntriesByView($view, $limit = '') {
         parent::__construct();
 
         switch ($_SESSION['sort'])
@@ -152,6 +152,8 @@ class Sqlite extends Store {
                 break;
         }
 
+        $sql .= ' ' . $limit;
+
         $query      = $this->executeQuery($sql, $params);
         $entries    = $query->fetchAll();