Imrovment the page navigation in album.php

Hallo
I use Zenphoto version 1.4.3.
album.php desplays 1 even when the whole album just one page.
If you also see it shouldn't, here how I fix it in template-functions.php [line 826]:
`
if(count($nav) == 1){
} else{
if($current == 1) {
echo '1';
} else {
printLink($nav[1], 1, gettext("Page 1"));
}
}
`
I use theme garland and in zen.css
[line 233] ul.pagelist li.current a {
but li.current is not a link

I hope this could be somehow useful.

Comments

  • acrylian Administrator, Developer
    You never should hack core files, especially if you can solve this on the theme using `hasNextPage()` and `hasPrevPage()`.

    but li.current is not a link
    No because it does not makes sense to link from a page to the page itself.
Sign In or Register to comment.