[Tweak] If the topic is only one page, then don't show the paginator

Tillreetree
[Tweak] If the topic is only one page, then don't show the paginator
Tillreetree@fc7e1f5a Monday 5th June 2023, 07:56:45

Because I thought it would be redundant to display a paginator with only "1" if the topic was only one page, I modified the pageLink function slightly.

Put the following code after the "$end" variable and before the "$out" variable in the pageLink function in Pagination.lib.php ( approximately line 30):

if ($start === 1 && $end === 1) {return '';}


So that the paginator only appears when the number of replies or topics is greater than two pages.

Last modified by Tillreetree@fc7e1f5a on Monday 5th June 2023, 07:59:00

Suggested Topics
Alexander Liebrecht started Soon Subforums are possible
Feature Requests
3.1K 2
5.4K 11
Want to read more? Browse all categories or view latest topics.