Fixed more wfGetDB() calls with no arguments.
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 21 Sep 2008 09:15:28 +0000 (09:15 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 21 Sep 2008 09:15:28 +0000 (09:15 +0000)
includes/api/ApiQueryBlocks.php

index 9d9a5d7..1dca39c 100644 (file)
@@ -127,10 +127,9 @@ class ApiQueryBlocks extends ApiQueryBase {
                        Block::purgeExpired();
 
                $res = $this->select(__METHOD__);
-               $db = wfGetDB();
 
                $count = 0;
-               while($row = $db->fetchObject($res))
+               while($row = $res->fetchObject())
                {
                        if($count++ == $params['limit'])
                        {