From b47bb18aad9013ef219851b8ba9f2876b116465c Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 21 Sep 2008 09:15:28 +0000 Subject: [PATCH] Fixed more wfGetDB() calls with no arguments. --- includes/api/ApiQueryBlocks.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index 9d9a5d75a0..1dca39c009 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -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']) { -- 2.20.1