diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-09-09 04:55:56 -0700 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-09-09 04:55:56 -0700 |
commit | ef6051b95e2e289bb32107b75594406db2801653 (patch) | |
tree | 1210fefbff6604e6039191a0f7ba7334ddf5a49f /inc/poche/Poche.class.php | |
parent | 3eb049036e601c1978cf5f7f0d5be8c577933b72 (diff) | |
parent | 7f9f5281e5fe6dd92c810f7945c7761ca17fd2e6 (diff) | |
download | wallabag-ef6051b95e2e289bb32107b75594406db2801653.tar.gz wallabag-ef6051b95e2e289bb32107b75594406db2801653.tar.zst wallabag-ef6051b95e2e289bb32107b75594406db2801653.zip |
Merge pull request #199 from NumEricR/nb-results
Add the number of results next to pager
Diffstat (limited to 'inc/poche/Poche.class.php')
-rw-r--r-- | inc/poche/Poche.class.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index a8f64151..89e94a3a 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -262,6 +262,7 @@ class Poche | |||
262 | $tpl_vars = array( | 262 | $tpl_vars = array( |
263 | 'entries' => '', | 263 | 'entries' => '', |
264 | 'page_links' => '', | 264 | 'page_links' => '', |
265 | 'nb_results' => '', | ||
265 | ); | 266 | ); |
266 | if (count($entries) > 0) { | 267 | if (count($entries) > 0) { |
267 | $this->pagination->set_total(count($entries)); | 268 | $this->pagination->set_total(count($entries)); |
@@ -269,6 +270,7 @@ class Poche | |||
269 | $datas = $this->store->getEntriesByView($view, $this->user->getId(), $this->pagination->get_limit()); | 270 | $datas = $this->store->getEntriesByView($view, $this->user->getId(), $this->pagination->get_limit()); |
270 | $tpl_vars['entries'] = $datas; | 271 | $tpl_vars['entries'] = $datas; |
271 | $tpl_vars['page_links'] = $page_links; | 272 | $tpl_vars['page_links'] = $page_links; |
273 | $tpl_vars['nb_results'] = count($entries); | ||
272 | } | 274 | } |
273 | Tools::logm('display ' . $view . ' view'); | 275 | Tools::logm('display ' . $view . ' view'); |
274 | break; | 276 | break; |