diff options
| author | Holger Weiß <holger@zedat.fu-berlin.de> | 2026-07-02 17:23:42 +0200 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2026-07-02 17:23:42 +0200 |
| commit | 90a4cabe83a5775cb4889ecddc5fff0a8b1cb2ad (patch) | |
| tree | 01fe52f4d000f6182817a71738769e999699a841 /web/attachments/254104-check_http.c-head-patch | |
| parent | ae7f0beff0decfaf2838a28003b9dc2e72184b87 (diff) | |
| download | site-90a4cabe83a5775cb4889ecddc5fff0a8b1cb2ad.tar.gz | |
Fix off-by-one in news pagination page count
math.ceil() already rounds up when the post count isn't an exact
multiple of posts_per_page, so the extra "if remainder > 0" bump
double-counted and produced a page-count one higher than the number of
pages next_news_chunk() actually generates. This made the news footer
link to a nonexistent last page (e.g., news/4.html when only 3 pages
exist).
Diffstat (limited to 'web/attachments/254104-check_http.c-head-patch')
0 files changed, 0 insertions, 0 deletions
