diff --git a/themes/danbooru2/themelet.class.php b/themes/danbooru2/themelet.class.php index c1f45c89a..0f1922755 100644 --- a/themes/danbooru2/themelet.class.php +++ b/themes/danbooru2/themelet.class.php @@ -56,13 +56,13 @@ private function build_paginator(int $current_page, int $total_pages, string $ba } $pages_html = joinHTML(" ", $pages); - if ($first_html) { + if ($start > 2) { $pdots = "..."; } else { $pdots = ""; } - if ($last_html) { + if ($total_pages > $end+1) { $ndots = "..."; } else { $ndots = "";