From: Tim Starling Date: Sun, 21 Sep 2008 09:15:28 +0000 (+0000) Subject: Fixed more wfGetDB() calls with no arguments. X-Git-Tag: 1.31.0-rc.0~45181 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=b47bb18aad9013ef219851b8ba9f2876b116465c;p=lhc%2Fweb%2Fwiklou.git Fixed more wfGetDB() calls with no arguments. --- 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']) {