allow feed paging
This commit is contained in:
parent
7d9f785758
commit
cfbfdca610
@ -12,6 +12,9 @@ function feed_init(&$a) {
|
||||
$params['type'] = ((stristr(argv(0),'json')) ? 'json' : 'xml');
|
||||
$params['pages'] = ((x($_REQUEST,'pages')) ? intval($_REQUEST['pages']) : 0);
|
||||
$params['top'] = ((x($_REQUEST,'top')) ? intval($_REQUEST['top']) : 0);
|
||||
$params['start'] = ((x($params,'start')) ? intval($params['start']) : 0);
|
||||
$params['records'] = ((x($params,'records')) ? intval($params['records']) : 40);
|
||||
$params['direction'] = ((x($params,'direction')) ? dbesc($params['direction']) : 'desc');
|
||||
|
||||
$channel = '';
|
||||
if(argc() > 1) {
|
||||
|
@ -1 +1 @@
|
||||
2014-10-28.842
|
||||
2014-10-29.843
|
||||
|
Reference in New Issue
Block a user