X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FwaitForSlave.php;h=a62d1618efed57bc0b6dd87fadb5cecf443bb8fe;hb=75e46771dc4a848ef116001a74c3c1a54c3af695;hp=655be43d7438a69b6d03e2e9d3416e1dc0652d78;hpb=490dbd7aa5b090c6daf19e760f4651c0eb6682f1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/waitForSlave.php b/maintenance/waitForSlave.php index 655be43d74..a62d1618ef 100644 --- a/maintenance/waitForSlave.php +++ b/maintenance/waitForSlave.php @@ -22,7 +22,7 @@ * @see wfWaitForSlaves() */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script to wait until slave lag goes under a certain value. @@ -31,6 +31,7 @@ require_once( __DIR__ . '/Maintenance.php' ); */ class WaitForSlave extends Maintenance { public function __construct() { + parent::__construct(); $this->addArg( 'maxlag', 'How long to wait for the slaves, default 10 seconds', false ); } public function execute() { @@ -39,4 +40,4 @@ class WaitForSlave extends Maintenance { } $maintClass = "WaitForSlave"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;