}
# 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