diff options
author | friendica <info@friendica.com> | 2013-02-10 17:10:58 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-10 17:10:58 -0800 |
commit | 27c9288addb1630551633bdc4e631d4d01b5b93e (patch) | |
tree | 2b2195685b49a29c872585b9959313ba9efd4739 /mod | |
parent | 90c1ecca244875fa915a4e5dfba3278e7c28e8d6 (diff) | |
download | volse-hubzilla-27c9288addb1630551633bdc4e631d4d01b5b93e.tar.gz volse-hubzilla-27c9288addb1630551633bdc4e631d4d01b5b93e.tar.bz2 volse-hubzilla-27c9288addb1630551633bdc4e631d4d01b5b93e.zip |
reduce itemspage for better interactive performance
Diffstat (limited to 'mod')
-rw-r--r-- | mod/network.php | 2 | ||||
-rw-r--r-- | mod/settings.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/network.php b/mod/network.php index 1a3989b69..88c7520dd 100644 --- a/mod/network.php +++ b/mod/network.php @@ -561,7 +561,7 @@ function network_content(&$a, $update = 0, $load = false) { } else { $itemspage = get_pconfig(local_user(),'system','itemspage'); - $a->set_pager_itemspage(((intval($itemspage)) ? $itemspage : 30)); + $a->set_pager_itemspage(((intval($itemspage)) ? $itemspage : 20)); $pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage'])); } diff --git a/mod/settings.php b/mod/settings.php index d2dd57b18..7bfc90f55 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -209,7 +209,7 @@ function settings_post(&$a) { if($browser_update < 10000) $browser_update = 10000; - $itemspage = ((x($_POST,'itemspage')) ? intval($_POST['itemspage']) : 40); + $itemspage = ((x($_POST,'itemspage')) ? intval($_POST['itemspage']) : 20); if($itemspage > 100) $itemspage = 100; @@ -813,7 +813,7 @@ function settings_content(&$a) { $browser_update = (($browser_update == 0) ? 40 : $browser_update / 1000); // default if not set: 40 seconds $itemspage = intval(get_pconfig(local_user(), 'system','itemspage')); - $itemspage = (($itemspage > 0 && $itemspage < 101) ? $itemspage : 40); // default if not set: 40 items + $itemspage = (($itemspage > 0 && $itemspage < 101) ? $itemspage : 20); // default if not set: 20 items $nosmile = get_pconfig(local_user(),'system','no_smilies'); $nosmile = (($nosmile===false)? '0': $nosmile); // default if not set: 0 |