[themes/danbooru2] adjust rules for when to show '...', hopefully fixes #940

This commit is contained in:
Shish 2023-09-06 12:01:08 +01:00 committed by Shish
parent 867fdec284
commit 945c358ab6

View file

@ -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 = "";