diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-05 21:56:32 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-05 21:56:32 +0200 |
commit | 6a361945eaf86a978b82bd6fb3442fe64428d9df (patch) | |
tree | ab7e2cff6301b22e5e54ce0321b13502806d7546 /inc/store/sqlite.class.php | |
parent | 55821e04c188997d258645975220828e195d0df4 (diff) | |
download | wallabag-6a361945eaf86a978b82bd6fb3442fe64428d9df.tar.gz wallabag-6a361945eaf86a978b82bd6fb3442fe64428d9df.tar.zst wallabag-6a361945eaf86a978b82bd6fb3442fe64428d9df.zip |
new design, pagination & more
Diffstat (limited to 'inc/store/sqlite.class.php')
-rw-r--r-- | inc/store/sqlite.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/store/sqlite.class.php b/inc/store/sqlite.class.php index a15bc095..3e391e40 100644 --- a/inc/store/sqlite.class.php +++ b/inc/store/sqlite.class.php | |||
@@ -114,7 +114,7 @@ class Sqlite extends Store { | |||
114 | return $entry[0]; | 114 | return $entry[0]; |
115 | } | 115 | } |
116 | 116 | ||
117 | public function getEntriesByView($view) { | 117 | public function getEntriesByView($view, $limit = '') { |
118 | parent::__construct(); | 118 | parent::__construct(); |
119 | 119 | ||
120 | switch ($_SESSION['sort']) | 120 | switch ($_SESSION['sort']) |
@@ -152,6 +152,8 @@ class Sqlite extends Store { | |||
152 | break; | 152 | break; |
153 | } | 153 | } |
154 | 154 | ||
155 | $sql .= ' ' . $limit; | ||
156 | |||
155 | $query = $this->executeQuery($sql, $params); | 157 | $query = $this->executeQuery($sql, $params); |
156 | $entries = $query->fetchAll(); | 158 | $entries = $query->fetchAll(); |
157 | 159 | ||