Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Archive
art-web
Commits
4a49a437
Commit
4a49a437
authored
Dec 19, 2008
by
Thomas Wood
Browse files
Don't print the page navigation if there is only one page!
svn path=/branches/art-hub/; revision=573
parent
37563dfa
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/pagination.php
View file @
4a49a437
...
...
@@ -37,6 +37,10 @@ class Paginator
$num_pages
=
ceil
(
$this
->
total
/
$this
->
limit
);
/* only one page, no point in printing navigation! */
if
(
$num_pages
<=
1
)
return
;
if
(
$context
>
$num_pages
)
$context
=
$num_pages
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment