From c1a0b534154e75829c8ae0fa08b1c659acff9b5f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Jan 2007 09:52:05 +0100 Subject: [PATCH] add offset support for queryFeedHeadlines --- functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index afe3e4cd..bbcfdce3 100644 --- a/functions.php +++ b/functions.php @@ -2172,7 +2172,8 @@ return $search_query_part; } - function queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view, $search, $search_mode, $match_on, $override_order = false) { + function queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view, $search, $search_mode, $match_on, $override_order = false, $offset = 0) { + if ($search) { $search_query_part = getSearchSql($search, $match_on); @@ -2391,7 +2392,7 @@ $search_query_part $view_query_part $query_strategy_part ORDER BY $order_by - $limit_query_part"; + $limit_query_part OFFSET $offset"; $result = db_query($link, $query); -- 2.39.5