mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-29 12:13:25 +01:00
Fix RSS
This commit is contained in:
@@ -13,6 +13,7 @@ $modulepart = GETPOST('modulepart', 'aZ09');
|
||||
$entity = GETPOST('entity', 'int') ?GETPOST('entity', 'int') : $conf->entity;
|
||||
$original_file = GETPOST("file", "alpha");
|
||||
$l = GETPOST('l', 'aZ09');
|
||||
$limit = GETPOST('limit', 'int');
|
||||
|
||||
// Parameters for RSS
|
||||
$rss = GETPOST('rss', 'aZ09');
|
||||
@@ -103,7 +104,7 @@ if ($rss) {
|
||||
$filters = array('type_container'=>'blogpost');
|
||||
if ($l) $filters['lang'] = $l;
|
||||
|
||||
$MAXNEWS = 20;
|
||||
$MAXNEWS = ($limit ? $limit : 20);
|
||||
$arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', $MAXNEWS, 0, $filters);
|
||||
$eventarray = array();
|
||||
if (is_array($arrayofblogs)) {
|
||||
|
||||
Reference in New Issue
Block a user