fix uggo notice selecting commons db
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 5 Mar 2007 20:03:45 +0000 (20:03 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 5 Mar 2007 20:03:45 +0000 (20:03 +0000)
includes/Image.php

index d56a1dd..ef6d9e4 100644 (file)
@@ -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];