aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-27 19:53:36 -0700
committerFriendika <info@friendika.com>2011-03-27 19:53:36 -0700
commitc962f5c4bcc26fa7bad98a714cdb5e92b6acb57c (patch)
treed54c7762d73e123eec96ef89e71946ac1b597fe0 /boot.php
parent76918ed5a59ac52486531f8bf4efec1180fc9d59 (diff)
downloadvolse-hubzilla-c962f5c4bcc26fa7bad98a714cdb5e92b6acb57c.tar.gz
volse-hubzilla-c962f5c4bcc26fa7bad98a714cdb5e92b6acb57c.tar.bz2
volse-hubzilla-c962f5c4bcc26fa7bad98a714cdb5e92b6acb57c.zip
comment collapsing, pagination wasn't advancing past 16
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 54b34416f..ba9e2b6e4 100644
--- a/boot.php
+++ b/boot.php
@@ -1068,6 +1068,7 @@ function paginate(&$a) {
$stripped = preg_replace('/(&page=[0-9]*)/','',$a->query_string);
$stripped = str_replace('q=','',$stripped);
$stripped = trim($stripped,'/');
+ $pagenum = $a->pager['page'];
$url = $a->get_baseurl() . '/' . $stripped;
@@ -1080,7 +1081,7 @@ function paginate(&$a) {
$numpages = $a->pager['total'] / $a->pager['itemspage'];
- $numstart = 1;
+ $numstart = 1;
$numstop = $numpages;
if($numpages > 14) {