From: Derick Alangi Date: Sun, 24 Mar 2019 23:02:21 +0000 (+0100) Subject: block: Use correct function wfGetDB() as defined X-Git-Tag: 1.34.0-rc.0~2353^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=40de85df3d6788cb7a272098ff74ed0450e289a9;p=lhc%2Fweb%2Fwiklou.git block: Use correct function wfGetDB() as defined Change-Id: I92ff76a9b62dec0f1e3253230676d4b5c0a877f0 --- diff --git a/includes/block/BlockRestriction.php b/includes/block/BlockRestriction.php index b92cda80f5..cbd30c2c6f 100644 --- a/includes/block/BlockRestriction.php +++ b/includes/block/BlockRestriction.php @@ -51,7 +51,7 @@ class BlockRestriction { return []; } - $db = $db ?: wfGetDb( DB_REPLICA ); + $db = $db ?: wfGetDB( DB_REPLICA ); $result = $db->select( [ 'ipblocks_restrictions', 'page' ], @@ -182,7 +182,7 @@ class BlockRestriction { $parentBlockId = (int)$parentBlockId; - $db = wfGetDb( DB_MASTER ); + $db = wfGetDB( DB_MASTER ); $db->startAtomic( __METHOD__ );