X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=1741958681e3f185e1e3449288b86a54e1f04de4;hb=74068ce880e245f84844bd78d49214994202441a;hp=7b4b502905fde5ebf5bb4c077ed5d9b05c7aacfc;hpb=7f646a219e50b8ef2fbc6f3226c39ae6793edf59;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 7b4b502905..1741958681 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2563,10 +2563,10 @@ function wfWikiID() { * @todo Replace calls to wfGetDB with calls to LoadBalancer::getConnection() * on an injected instance of LoadBalancer. * - * @return \Wikimedia\Rdbms\Database + * @return \Wikimedia\Rdbms\DBConnRef */ function wfGetDB( $db, $groups = [], $wiki = false ) { - return wfGetLB( $wiki )->getConnection( $db, $groups, $wiki ); + return wfGetLB( $wiki )->getMaintenanceConnectionRef( $db, $groups, $wiki ); } /**