dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d36d8cc
)
Implement OFFSET in getContributors(). Nothing currently passes this param, so it...
author
Chad Horohoe
<demon@users.mediawiki.org>
Mon, 7 Jul 2008 01:11:50 +0000
(
01:11
+0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Mon, 7 Jul 2008 01:11:50 +0000
(
01:11
+0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
508aacc
..
ca04622
100644
(file)
--- 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__);