aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authorNumEricR <eric.github@gmail.com>2013-08-28 19:12:11 +0200
committerNumEricR <eric.github@gmail.com>2013-08-28 21:23:26 +0200
commit7f9f5281e5fe6dd92c810f7945c7761ca17fd2e6 (patch)
tree1210fefbff6604e6039191a0f7ba7334ddf5a49f /inc
parent3eb049036e601c1978cf5f7f0d5be8c577933b72 (diff)
downloadwallabag-7f9f5281e5fe6dd92c810f7945c7761ca17fd2e6.tar.gz
wallabag-7f9f5281e5fe6dd92c810f7945c7761ca17fd2e6.tar.zst
wallabag-7f9f5281e5fe6dd92c810f7945c7761ca17fd2e6.zip
Add number of results next to pager
Diffstat (limited to 'inc')
-rw-r--r--inc/poche/Poche.class.php2
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;