From f8c7c4a3efb95e0078776ab06eb3e4f9c07d6601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Mon, 2 Jun 2014 21:33:10 +0200 Subject: [PATCH] Add the nmuber of elemnts in search and multidatabase view. re #79 --- base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base.php b/base.php index 7a20692..9195340 100644 --- a/base.php +++ b/base.php @@ -949,7 +949,7 @@ class PageQueryResult extends Page array_push ($this->entryArray, new Entry (str_format (localize ("search.result.{$key}"), $this->query), DB . ":query:{$d}:{$key}", str_format (localize("{$key}word", $total), $total), "text", array ( new LinkNavigation ("?page={$pagequery}&query={$query}&db={$d}&scope={$key}")), - Base::noDatabaseSelected () ? "" : "tt-header")); + Base::noDatabaseSelected () ? "" : "tt-header", $total)); } if (!Base::noDatabaseSelected () && $this->useTypeahead ()) { foreach ($array as $entry) { @@ -992,7 +992,7 @@ class PageQueryResult extends Page list ($array, $totalNumber) = Book::getBooksByQuery (array ("all" => $crit), 1, $i, 1); array_push ($this->entryArray, new Entry ($key, DB . ":query:{$i}", str_format (localize ("bookword", $totalNumber), $totalNumber), "text", - array ( new LinkNavigation ("?" . DB . "={$i}&page=9&query=" . $this->query)))); + array ( new LinkNavigation ("?" . DB . "={$i}&page=9&query=" . $this->query)), "", $totalNumber)); $i++; } return;