* Introduced LBFactory -- an abstract class for configuring database load balancers...
[lhc/web/wiklou.git] / maintenance / updateSpecialPages.php
index 5e0f2ce..94b5f20 100644 (file)
@@ -73,12 +73,12 @@ foreach ( $wgQueryPages as $page ) {
                }
 
                # Reopen any connections that have closed
-               if ( !$wgLoadBalancer->pingAll())  {
+               if ( !wfGetLB()->pingAll())  {
                        print "\n";
                        do {
                                print "Connection failed, reconnecting in 10 seconds...\n";
                                sleep(10);
-                       } while ( !$wgLoadBalancer->pingAll() );
+                       } while ( !wfGetLB()->pingAll() );
                        print "Reconnected\n\n";
                } else {
                        # Commit the results