Rename LBFactory => LBFactoryMW and make LBFactory in /libs
[lhc/web/wiklou.git] / maintenance / Maintenance.php
index 2216de1..1fbca14 100644 (file)
@@ -1091,7 +1091,7 @@ abstract class Maintenance {
                                $wgLBFactoryConf['serverTemplate']['user'] = $wgDBuser;
                                $wgLBFactoryConf['serverTemplate']['password'] = $wgDBpassword;
                        }
-                       LBFactory::destroyInstance();
+                       MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->destroy();
                }
 
                // Per-script profiling; useful for debugging