Merge "block: Use correct function wfGetDB() as defined"
authorMaxSem <maxsem.wiki@gmail.com>
Tue, 26 Mar 2019 05:26:38 +0000 (05:26 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 26 Mar 2019 05:26:38 +0000 (05:26 +0000)
includes/block/BlockRestriction.php

index b92cda8..cbd30c2 100644 (file)
@@ -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__ );