diff options
author | Michael Johnston <michaelgeorgejohnston@gmail.com> | 2012-03-09 21:29:39 -0500 |
---|---|---|
committer | Michael Johnston <michaelgeorgejohnston@gmail.com> | 2012-03-09 21:29:39 -0500 |
commit | fd1f8fb4361b415defa8d6da2c93d2f19fb59ba1 (patch) | |
tree | 95d4f098503eb18c24bcc05111df7fd541dcfa9d /mod/network.php | |
parent | 68ca29719e6eb168ca3efa2d60026da924a0e03b (diff) | |
download | volse-hubzilla-fd1f8fb4361b415defa8d6da2c93d2f19fb59ba1.tar.gz volse-hubzilla-fd1f8fb4361b415defa8d6da2c93d2f19fb59ba1.tar.bz2 volse-hubzilla-fd1f8fb4361b415defa8d6da2c93d2f19fb59ba1.zip |
allow user to set number of items to show on network page
Diffstat (limited to 'mod/network.php')
-rwxr-xr-x | mod/network.php | 3 |
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'])); } |