Skip to content

Commit

Permalink
[themes/danbooru2] adjust rules for when to show '...', hopefully fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Sep 6, 2023
1 parent 867fdec commit 945c358
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/danbooru2/themelet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down

0 comments on commit 945c358

Please sign in to comment.