Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -760,7 +760,7 @@ |
761 | 761 | } |
762 | 762 | |
763 | 763 | function do_templatelinks_update() { |
764 | | - global $wgDatabase, $wgLoadBalancer; |
| 764 | + global $wgDatabase; |
765 | 765 | $fname = 'do_templatelinks_update'; |
766 | 766 | |
767 | 767 | if ( $wgDatabase->tableExists( 'templatelinks' ) ) { |
— | — | @@ -770,7 +770,7 @@ |
771 | 771 | wfOut( "Creating templatelinks table...\n" ); |
772 | 772 | $wgDatabase->sourceFile( archive( 'patch-templatelinks.sql' ) ); |
773 | 773 | wfOut( "Populating...\n" ); |
774 | | - if ( isset( $wgLoadBalancer ) && $wgLoadBalancer->getServerCount() > 1 ) { |
| 774 | + if ( wfGetLB()->getServerCount() > 1 ) { |
775 | 775 | // Slow, replication-friendly update |
776 | 776 | $res = $wgDatabase->select( 'pagelinks', array( 'pl_from', 'pl_namespace', 'pl_title' ), |
777 | 777 | array( 'pl_namespace' => NS_TEMPLATE ), $fname ); |