Skip to content

Commit e8b0c2b

Browse files
committed
fix: corrected pages display for pagination
1 parent 93dd726 commit e8b0c2b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

phpmyfaq/assets/templates/default/search.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
{% if totalPages > 1 %}
5656
<p>
57-
<strong>{{ msgPage }}{{ currentPage }} {{ from }} {{ msgSearchResults }}</strong>
57+
<strong>{{ msgPage }}{{ currentPage }} {{ from }} {{ msgSearchResultsPagination }}</strong>
5858
</p>
5959
{% endif %}
6060

phpmyfaq/src/phpMyFAQ/Controller/Frontend/SearchController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ public function index(Request $request): Response
159159
'currentPage' => $searchData['currentPage'],
160160
'from' => Translation::get(key: 'msgVoteFrom'),
161161
'msgSearchResults' => $plurals->GetMsg('plmsgSearchAmount', $searchData['numberOfSearchResults'] ?? 0),
162+
'msgSearchResultsPagination' => $plurals->GetMsg('plmsgPagesTotal', $searchData['totalPages'] ?? 0),
162163
'searchTerm' => $searchData['searchTerm'],
163164
'searchTags' => $searchData['searchTags'],
164165
'msgSearchWord' => Translation::get(key: 'msgSearchWord'),

0 commit comments

Comments
 (0)