summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.class.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 46823e7..fc11611 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -785,6 +785,8 @@ class PHPFSPOT {
}
}
+ $dotdot_made = 0;
+
for($i = 1; $i <= $last_page; $i++) {
if($current_page == $i)
@@ -819,12 +821,16 @@ class PHPFSPOT {
$i == $current_page+3 || $i == $current_page+2 || $i == $current_page+1 /* three after */) {
$page_select.= $select;
+ $dotdot_made = 0;
continue;
}
}
- $page_select.= ".";
+ if(!$dotdot_made) {
+ $page_select.= ".........&nbsp;";
+ $dotdot_made = 1;
+ }
}
/* only show the page selector if we have more then one page */