]> git.wh0rd.org Git - tt-rss.git/commitdiff
add offset support for queryFeedHeadlines
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 19 Jan 2007 08:52:05 +0000 (09:52 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 19 Jan 2007 08:52:05 +0000 (09:52 +0100)
functions.php

index afe3e4cd2ff418a32a5b7deaac4ad4744c46bca3..bbcfdce360ca62f053f5c4b4fd2ccaa12023dd09 100644 (file)
                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);
                                        $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);