Merge pull request #127 from git-marijus/master
make /channel respect "Maximum number of conversations to load at any time" setting like /network does.
This commit is contained in:
commit
b304267a09
@ -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))));
|
$sql_extra2 .= protect_sprintf(sprintf(" AND item.created >= '%s' ", dbesc(datetime_convert(date_default_timezone_get(),'',$datequery2))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$itemspage = get_pconfig(local_user(),'system','itemspage');
|
||||||
$a->set_pager_itemspage(40);
|
$a->set_pager_itemspage(((intval($itemspage)) ? $itemspage : 20));
|
||||||
|
|
||||||
$pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage']));
|
$pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage']));
|
||||||
|
|
||||||
if($load) {
|
if($load) {
|
||||||
|
Reference in New Issue
Block a user