Whitespace
[lhc/web/wiklou.git] / maintenance / waitForSlave.php
index edeede8..309d0e7 100644 (file)
@@ -5,16 +5,11 @@
  * @ingroup Maintenance
  */
 
-require_once( "Maintenance.php" );
-
-class WaitForSlave extends Maintenance {
-       public function __construct() {
-               $this->addArgs( array( 'maxlag' ) );
-       }
-       public function execute() {
-               wfWaitForSlaves( $this->getArg( 0, 10 ) );
-       }
+require_once( "commandLine.inc" );
+if ( isset( $args[0] ) ) {
+       wfWaitForSlaves($args[0]);
+} else {
+       wfWaitForSlaves(10);
 }
 
-$maintClass = "WaitForSlave";
-require_once( DO_MAINTENANCE );
+