aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-09 19:42:52 -0800
committerfriendica <info@friendica.com>2012-03-09 19:42:52 -0800
commita374bbcf81d6ba36a3fc409e28db377b9612d345 (patch)
tree95d4f098503eb18c24bcc05111df7fd541dcfa9d /mod/network.php
parent68ca29719e6eb168ca3efa2d60026da924a0e03b (diff)
parentfd1f8fb4361b415defa8d6da2c93d2f19fb59ba1 (diff)
downloadvolse-hubzilla-a374bbcf81d6ba36a3fc409e28db377b9612d345.tar.gz
volse-hubzilla-a374bbcf81d6ba36a3fc409e28db377b9612d345.tar.bz2
volse-hubzilla-a374bbcf81d6ba36a3fc409e28db377b9612d345.zip
Merge pull request #117 from unary/issue299
allow user to set number of items to show on network page
Diffstat (limited to 'mod/network.php')
-rwxr-xr-xmod/network.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php
index 27c6e315b..b04a7b489 100755
--- a/mod/network.php
+++ b/mod/network.php
@@ -403,7 +403,8 @@ function network_content(&$a, $update = 0) {
if(count($r)) {
$a->set_pager_total($r[0]['total']);
- $a->set_pager_itemspage(40);
+ $itemspage_network = get_pconfig(local_user(),'system','itemspage_network');
+ $a->set_pager_itemspage(((intval($itemspage_network)) ? $itemspage_network : 40));
}
$pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage']));
}