dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ApiQueryCategories: Supply limit for DB query
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryCategories.php
diff --git
a/includes/api/ApiQueryCategories.php
b/includes/api/ApiQueryCategories.php
index
547a4e8
..
79347e6
100644
(file)
--- a/
includes/api/ApiQueryCategories.php
+++ b/
includes/api/ApiQueryCategories.php
@@
-127,6
+127,7
@@
class ApiQueryCategories extends ApiQueryGeneratorBase {
'cl_to' . $sort
] );
}
+ $this->addOption( 'LIMIT', $params['limit'] + 1 );
$res = $this->select( __METHOD__ );