diff options
author | Andrew Dolgov <[email protected]> | 2009-01-05 09:09:05 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-05 09:09:05 +0100 |
commit | ead2715d9c9a436b507e48cf5975015f0ddb493d (patch) | |
tree | 578526cb07cb566098e455a95b1ffd959f067cd8 /functions.php | |
parent | 7e1a9fbcbcb859537cb8718594334906073ba712 (diff) |
add ability to customize amount of returned entries for syndicated feeds
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 6 |
1 files changed, 4 insertions, 2 deletions
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]; |