X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FwaitForSlave.php;h=a8d8915afd35ce700fdfd39e9957a0f9ccdde27f;hb=d881d1fdcafd7510ef16281c8dec079db990e8cf;hp=e8c103478096fb890d20e6a5afe233c7809ae1ff;hpb=a1c51e18af85a9ac464c5b555921e58ec422cd11;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/waitForSlave.php b/maintenance/waitForSlave.php index e8c1034780..a8d8915afd 100644 --- a/maintenance/waitForSlave.php +++ b/maintenance/waitForSlave.php @@ -15,15 +15,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * + * @file * @ingroup Maintenance * @see wfWaitForSlaves() */ -require_once( "Maintenance.php" ); +require_once( dirname( __FILE__ ) . '/Maintenance.php' ); class WaitForSlave extends Maintenance { public function __construct() { - $this->addArgs( array( 'maxlag' ) ); + $this->addArg( 'maxlag', 'How long to wait for the slaves, default 10 seconds', false ); } public function execute() { wfWaitForSlaves( $this->getArg( 0, 10 ) );