summaryrefslogtreecommitdiffstats
path: root/web/attachments
diff options
context:
space:
mode:
authorHolger Weiß <holger@zedat.fu-berlin.de>2026-07-02 17:23:42 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2026-07-02 17:23:42 +0200
commit90a4cabe83a5775cb4889ecddc5fff0a8b1cb2ad (patch)
tree01fe52f4d000f6182817a71738769e999699a841 /web/attachments
parentae7f0beff0decfaf2838a28003b9dc2e72184b87 (diff)
downloadsite-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')
0 files changed, 0 insertions, 0 deletions