* Add form to RCLinked and add to sp:specialpages
[lhc/web/wiklou.git] / includes / ExternalStoreDB.php
index 70713d0..ab9cc8d 100644 (file)
@@ -1,13 +1,12 @@
 <?php
 /**
  *
- * @package MediaWiki
  *
  * DB accessable external objects
  *
  */
 
-/** @package MediaWiki */
+
 
 /**
  * External database storage will use one (or more) separate connection pools
@@ -33,12 +32,7 @@ class ExternalStoreDB {
 
        /** @todo Document.*/
        function &getLoadBalancer( $cluster ) {
-               global $wgExternalServers, $wgExternalLoadBalancers;
-               if ( !array_key_exists( $cluster, $wgExternalLoadBalancers ) ) {
-                       $wgExternalLoadBalancers[$cluster] = LoadBalancer::newFromParams( $wgExternalServers[$cluster] );
-               }
-               $wgExternalLoadBalancers[$cluster]->allowLagged(true);
-               return $wgExternalLoadBalancers[$cluster];
+               return wfGetLBFactory()->getExternalLB( $cluster );
        }
 
        /** @todo Document.*/
@@ -145,4 +139,4 @@ class ExternalStoreDB {
                return "DB://$cluster/$id";
        }
 }
-?>
+