aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryIWLinks.php
diff options
context:
space:
mode:
authorSam Reed <reedy@users.mediawiki.org>2010-06-20 18:48:34 +0000
committerSam Reed <reedy@users.mediawiki.org>2010-06-20 18:48:34 +0000
commitfaf34b4073594d606b742ec7ee25de90032ccd7c (patch)
tree00f93fe9c89f2338df4f485a4417a2a73d4bdffb /includes/api/ApiQueryIWLinks.php
parente19087423a24a2cfa8d90b9c6ecbebe76bc90bf0 (diff)
downloadmediawikicore-faf34b4073594d606b742ec7ee25de90032ccd7c.tar.gz
mediawikicore-faf34b4073594d606b742ec7ee25de90032ccd7c.zip
Per http://www.mediawiki.org/wiki/Special:Code/MediaWiki/66168#c7252 switch while ( $row = $db->fectchObject( $res ) ) to foreach ( $res as row )
On ApiQueryUsers switch $r to row, and remove nested brackets
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/68337
Diffstat (limited to 'includes/api/ApiQueryIWLinks.php')
-rw-r--r--includes/api/ApiQueryIWLinks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php
index b932c1185c74..b8c440d0ba0a 100644
--- a/includes/api/ApiQueryIWLinks.php
+++ b/includes/api/ApiQueryIWLinks.php
@@ -84,7 +84,7 @@ class ApiQueryIWLinks 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...