aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-10 13:49:28 -0700
committerfriendica <info@friendica.com>2013-09-10 13:49:28 -0700
commitb304267a09c5f4a2c36a0f3ed0f2d2b81d4c3a5c (patch)
tree57d24e904d1ddd2e3a68e9b8ffa6ddec93e3909d /mod
parentdfd91889ad1cb6460cebbc1478a187ca94c3dd83 (diff)
parentfec0c71445db41c5099ff4a5ca22c1db23b1568c (diff)
downloadvolse-hubzilla-b304267a09c5f4a2c36a0f3ed0f2d2b81d4c3a5c.tar.gz
volse-hubzilla-b304267a09c5f4a2c36a0f3ed0f2d2b81d4c3a5c.tar.bz2
volse-hubzilla-b304267a09c5f4a2c36a0f3ed0f2d2b81d4c3a5c.zip
Merge pull request #127 from git-marijus/master
make /channel respect "Maximum number of conversations to load at any time" setting like /network does.
Diffstat (limited to 'mod')
-rw-r--r--mod/channel.php5
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) {