X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2FmakeTestEdits.php;h=1effb61d4e7548ee05e3a5a3e463b16a152cdb40;hb=1b13888ed6bd09731f10045650714a3392bb55df;hp=c6569a0b317f3c13a2f8f8ac649008ef1243aa98;hpb=6ecdc5cd27d53442dd379928fcd831a86eeb07f6;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/makeTestEdits.php b/maintenance/makeTestEdits.php index c6569a0b31..1effb61d4e 100644 --- a/maintenance/makeTestEdits.php +++ b/maintenance/makeTestEdits.php @@ -30,7 +30,7 @@ require_once __DIR__ . '/Maintenance.php'; class MakeTestEdits extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Make test edits for a user"; + $this->addDescription( 'Make test edits for a user' ); $this->addOption( 'user', 'User name', true, true ); $this->addOption( 'count', 'Number of edits', true, true ); $this->addOption( 'namespace', 'Namespace number', false, true ); @@ -55,7 +55,7 @@ class MakeTestEdits extends Maintenance { $page->doEditContent( $content, $summary, 0, false, $user ); $this->output( "Edited $title\n" ); - if ( $i && ( $i % $this->mBatchSize ) == 0 ) { + if ( $i && ( $i % $this->getBatchSize() ) == 0 ) { wfWaitForSlaves(); } }