From a4e25cc202a894439aeeed38625603f49c9061b9 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 7 Jul 2008 01:11:50 +0000 Subject: [PATCH] Implement OFFSET in getContributors(). Nothing currently passes this param, so it shouldn't change any current behavior. --- includes/Article.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 508aacce76..ca04622f11 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -635,7 +635,6 @@ class Article { } /** - * @todo Document, fixme $offset never used. * @param $limit Integer: default 0. * @param $offset Integer: default 0. */ @@ -657,6 +656,8 @@ class Article { ORDER BY timestamp DESC"; if ($limit > 0) { $sql .= ' LIMIT '.$limit; } + if ($offset > 0) { $sql .= ' OFFSET '.$offset; } + $sql .= ' '. $this->getSelectOptions(); $res = $dbr->query($sql, __METHOD__); -- 2.20.1