]> git.plutz.net Git - serve0/commitdiff
bugfix: show last page in pagination
authorpaul <paul@plutz.net>
Wed, 6 Apr 2016 12:46:51 +0000 (12:46 +0000)
committerpaul <paul@plutz.net>
Wed, 6 Apr 2016 12:46:51 +0000 (12:46 +0000)
svn path=/trunk/; revision=115

pages/list.sh

index 6cc5fdc946efcb45ec927aea1a0503765edafd22..063bf40893e1b67e74e29ac6f61f6069318eb7dd 100755 (executable)
@@ -154,4 +154,4 @@ thumblist() {
   done
 }
 
-pagecount="$(( $(selectionlist | wc -l) / $pagesize ))"
+pagecount="$(( $(selectionlist | wc -l) / $pagesize + 1 ))"