diff options
author | marijus <mario@localhost.localdomain> | 2013-09-10 21:52:13 +0200 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2013-09-10 21:52:13 +0200 |
commit | fec0c71445db41c5099ff4a5ca22c1db23b1568c (patch) | |
tree | 57d24e904d1ddd2e3a68e9b8ffa6ddec93e3909d | |
parent | dfd91889ad1cb6460cebbc1478a187ca94c3dd83 (diff) | |
download | volse-hubzilla-fec0c71445db41c5099ff4a5ca22c1db23b1568c.tar.gz volse-hubzilla-fec0c71445db41c5099ff4a5ca22c1db23b1568c.tar.bz2 volse-hubzilla-fec0c71445db41c5099ff4a5ca22c1db23b1568c.zip |
make /channel respect "Maximum number of conversations to load at any time" setting like /network does.
-rw-r--r-- | mod/channel.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/channel.php b/mod/channel.php index 5d3855269..652084cf0 100644 --- a/mod/channel.php +++ b/mod/channel.php @@ -185,9 +185,8 @@ function channel_content(&$a, $update = 0, $load = false) { $sql_extra2 .= protect_sprintf(sprintf(" AND item.created >= '%s' ", dbesc(datetime_convert(date_default_timezone_get(),'',$datequery2)))); } - - $a->set_pager_itemspage(40); - + $itemspage = get_pconfig(local_user(),'system','itemspage'); + $a->set_pager_itemspage(((intval($itemspage)) ? $itemspage : 20)); $pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage'])); if($load) { |