From ead2715d9c9a436b507e48cf5975015f0ddb493d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 5 Jan 2009 09:09:05 +0100 Subject: add ability to customize amount of returned entries for syndicated feeds --- functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 38b11c665..593edaf1f 100644 --- a/functions.php +++ b/functions.php @@ -3483,10 +3483,12 @@ } function generate_syndicated_feed($link, $owner_uid, $feed, $is_cat, - $search, $search_mode, $match_on) { + $limit, $search, $search_mode, $match_on) { + + if (!$limit) $limit = 30; $qfh_ret = queryFeedHeadlines($link, $feed, - 30, false, $is_cat, $search, $search_mode, $match_on, "updated DESC", 0, + $limit, false, $is_cat, $search, $search_mode, $match_on, "updated DESC", 0, $owner_uid); $result = $qfh_ret[0]; -- cgit v1.2.3