Merge "Fix "Suceeded" typo in code"

This commit is contained in:
jenkins-bot 2018-08-27 23:22:33 +00:00 committed by Gerrit Code Review
commit f209c32fda

View file

@ -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 );