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
Per http://www.mediawiki.org/wiki/Special:Code/MediaWiki/66168#c7252 switch while...
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryLangLinks.php
diff --git
a/includes/api/ApiQueryLangLinks.php
b/includes/api/ApiQueryLangLinks.php
index
d4fc38f
..
31f1e17
100644
(file)
--- a/
includes/api/ApiQueryLangLinks.php
+++ b/
includes/api/ApiQueryLangLinks.php
@@
-79,7
+79,7
@@
class ApiQueryLangLinks extends ApiQueryBase {
$count = 0;
$db = $this->getDB();
-
while ( $row = $db->fetchObject( $res )
) {
+
foreach ( $res as $row
) {
if ( ++$count > $params['limit'] ) {
// We've reached the one extra which shows that
// there are additional pages to be had. Stop here...