From 945c358ab68ec76c10af37f8a8644dacebb85a85 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 6 Sep 2023 12:01:08 +0100 Subject: [PATCH] [themes/danbooru2] adjust rules for when to show '...', hopefully fixes #940 --- themes/danbooru2/themelet.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/danbooru2/themelet.class.php b/themes/danbooru2/themelet.class.php index c1f45c89..0f192275 100644 --- a/themes/danbooru2/themelet.class.php +++ b/themes/danbooru2/themelet.class.php @@ -56,13 +56,13 @@ class Themelet extends BaseThemelet } $pages_html = joinHTML(" ", $pages); - if ($first_html) { + if ($start > 2) { $pdots = "..."; } else { $pdots = ""; } - if ($last_html) { + if ($total_pages > $end+1) { $ndots = "..."; } else { $ndots = "";