From: Chad Horohoe Date: Mon, 7 Jul 2008 01:11:50 +0000 (+0000) Subject: Implement OFFSET in getContributors(). Nothing currently passes this param, so it... X-Git-Tag: 1.31.0-rc.0~46678 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=a4e25cc202a894439aeeed38625603f49c9061b9;p=lhc%2Fweb%2Fwiklou.git Implement OFFSET in getContributors(). Nothing currently passes this param, so it shouldn't change any current behavior. --- 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__);