mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-14 19:30:11 +00:00
Merge "Fix "Suceeded" typo in code"
This commit is contained in:
commit
f209c32fda
|
@ -175,7 +175,7 @@ class GenerateFancyCaptchas extends Maintenance {
|
|||
|
||||
$storeTime += microtime( true );
|
||||
|
||||
$storeSuceeded = true;
|
||||
$storeSucceeded = true;
|
||||
if ( $ret->isOK() ) {
|
||||
$this->output( " Done.\n" );
|
||||
$this->output(
|
||||
|
@ -193,11 +193,11 @@ class GenerateFancyCaptchas extends Maintenance {
|
|||
);
|
||||
}
|
||||
if ( $ret->failCount ) {
|
||||
$storeSuceeded = false;
|
||||
$storeSucceeded = false;
|
||||
$this->error( sprintf( "\nFailed to copy %d captchas\n", $ret->failCount ) );
|
||||
}
|
||||
if ( $ret->successCount + $ret->failCount !== $captchasGenerated ) {
|
||||
$storeSuceeded = false;
|
||||
$storeSucceeded = false;
|
||||
$this->error(
|
||||
sprintf( "Internal error: captchasGenerated: %d, successCount: %d, failCount: %d\n",
|
||||
$captchasGenerated, $ret->successCount, $ret->failCount
|
||||
|
@ -205,7 +205,7 @@ class GenerateFancyCaptchas extends Maintenance {
|
|||
);
|
||||
}
|
||||
} else {
|
||||
$storeSuceeded = false;
|
||||
$storeSucceeded = false;
|
||||
$this->output( "Errored.\n" );
|
||||
$this->error(
|
||||
Status::wrap( $ret )->getWikiText( null, null, 'en' ) .
|
||||
|
@ -213,7 +213,7 @@ class GenerateFancyCaptchas extends Maintenance {
|
|||
);
|
||||
}
|
||||
|
||||
if ( $storeSuceeded && $deleteOldCaptchas ) {
|
||||
if ( $storeSucceeded && $deleteOldCaptchas ) {
|
||||
$numOriginalFiles = count( $filesToDelete );
|
||||
$this->output( "Deleting {$numOriginalFiles} old captchas...\n" );
|
||||
$deleteTime = -microtime( true );
|
||||
|
|
Loading…
Reference in a new issue