Remove ?>'s from files. They're pointless, and just asking for people to mess with...
[lhc/web/wiklou.git] / maintenance / waitForSlave.php
1 <?php
2 require_once( "commandLine.inc" );
3
4 # Don't wait for benet
5 foreach ( $wgLoadBalancer->mServers as $i => $server ) {
6 if ( $server['host'] == '10.0.0.29' ) {
7 unset($wgLoadBalancer->mServers[$i]);
8 }
9 }
10 if ( isset( $args[0] ) ) {
11 wfWaitForSlaves($args[0]);
12 } else {
13 wfWaitForSlaves(10);
14 }
15
16