summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-01 09:13:27 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-01 09:13:27 +0000
commit583a68ff5ba655aeb17e3f09a5945aa735b91774 (patch)
treeb0f1d970356c51ea62063b560d8ddb20c2900a15 /phpfspot.class.php
parent38599c2345c2cd49dec2e7ae25093cdb15eb5a23 (diff)
issue6, only show page selector if more then one page
git-svn-id: file:///var/lib/svn/phpfspot/trunk@154 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index c142742..f0e2fb2 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -468,7 +468,6 @@ class PHPFSPOT {
for($i = 1; $i <= $last_page; $i++) {
-
if($current_page == $i)
$style = "style=\"font-size: 125%;\"";
elseif($current_page-1 == $i || $current_page+1 == $i)
@@ -486,7 +485,9 @@ class PHPFSPOT {
}
- $this->tmpl->assign('page_selector', $page_select);
+ /* only show the page selector if we have more then one page */
+ if($last_page > 1)
+ $this->tmpl->assign('page_selector', $page_select);
}
$current_tags = "";