From 8180764a47332303ef384e75a7860da1a55bc844 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 30 Dec 2010 02:48:27 +0000 Subject: [PATCH] Extract sucks Wrap long line --- includes/db/LoadBalancer.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/db/LoadBalancer.php b/includes/db/LoadBalancer.php index 355ed9250d..bc5f0b34d3 100644 --- a/includes/db/LoadBalancer.php +++ b/includes/db/LoadBalancer.php @@ -616,10 +616,16 @@ class LoadBalancer { */ function reallyOpenConnection( $server, $dbNameOverride = false ) { if( !is_array( $server ) ) { - throw new MWException( 'You must update your load-balancing configuration. See DefaultSettings.php entry for $wgDBservers.' ); + throw new MWException( 'You must update your load-balancing configuration. ' . + 'See DefaultSettings.php entry for $wgDBservers.' ); } - extract( $server ); + $type = $server['type']; + $host = $server['host']; + $user = $server['user']; + $password = $server['password']; + $flags = $server['flags']; + if ( $dbNameOverride !== false ) { $dbname = $dbNameOverride; } -- 2.20.1