From 9b9485eb695ff5e821fa62b3697daaa9feebfd28 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 5 Mar 2007 20:03:45 +0000 Subject: [PATCH] fix uggo notice selecting commons db --- includes/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Image.php b/includes/Image.php index d56a1ddbf9..ef6d9e460f 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -2330,7 +2330,7 @@ class Image static function getCommonsDB() { static $dbc; - global $wgLoadBalancer; + global $wgLoadBalancer, $wgSharedUploadDBname; if ( !isset( $dbc ) ) { $i = $wgLoadBalancer->getGroupIndex( 'commons' ); $dbinfo = $wgLoadBalancer->mServers[$i]; -- 2.20.1