From: Andrew Dolgov Date: Fri, 19 Jan 2007 08:52:05 +0000 (+0100) Subject: add offset support for queryFeedHeadlines X-Git-Tag: 1.2.7~7 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c1a0b534154e75829c8ae0fa08b1c659acff9b5f;p=tt-rss.git add offset support for queryFeedHeadlines --- 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);