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 );
|
$storeTime += microtime( true );
|
||||||
|
|
||||||
$storeSuceeded = true;
|
$storeSucceeded = true;
|
||||||
if ( $ret->isOK() ) {
|
if ( $ret->isOK() ) {
|
||||||
$this->output( " Done.\n" );
|
$this->output( " Done.\n" );
|
||||||
$this->output(
|
$this->output(
|
||||||
|
@ -193,11 +193,11 @@ class GenerateFancyCaptchas extends Maintenance {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ( $ret->failCount ) {
|
if ( $ret->failCount ) {
|
||||||
$storeSuceeded = false;
|
$storeSucceeded = false;
|
||||||
$this->error( sprintf( "\nFailed to copy %d captchas\n", $ret->failCount ) );
|
$this->error( sprintf( "\nFailed to copy %d captchas\n", $ret->failCount ) );
|
||||||
}
|
}
|
||||||
if ( $ret->successCount + $ret->failCount !== $captchasGenerated ) {
|
if ( $ret->successCount + $ret->failCount !== $captchasGenerated ) {
|
||||||
$storeSuceeded = false;
|
$storeSucceeded = false;
|
||||||
$this->error(
|
$this->error(
|
||||||
sprintf( "Internal error: captchasGenerated: %d, successCount: %d, failCount: %d\n",
|
sprintf( "Internal error: captchasGenerated: %d, successCount: %d, failCount: %d\n",
|
||||||
$captchasGenerated, $ret->successCount, $ret->failCount
|
$captchasGenerated, $ret->successCount, $ret->failCount
|
||||||
|
@ -205,7 +205,7 @@ class GenerateFancyCaptchas extends Maintenance {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$storeSuceeded = false;
|
$storeSucceeded = false;
|
||||||
$this->output( "Errored.\n" );
|
$this->output( "Errored.\n" );
|
||||||
$this->error(
|
$this->error(
|
||||||
Status::wrap( $ret )->getWikiText( null, null, 'en' ) .
|
Status::wrap( $ret )->getWikiText( null, null, 'en' ) .
|
||||||
|
@ -213,7 +213,7 @@ class GenerateFancyCaptchas extends Maintenance {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $storeSuceeded && $deleteOldCaptchas ) {
|
if ( $storeSucceeded && $deleteOldCaptchas ) {
|
||||||
$numOriginalFiles = count( $filesToDelete );
|
$numOriginalFiles = count( $filesToDelete );
|
||||||
$this->output( "Deleting {$numOriginalFiles} old captchas...\n" );
|
$this->output( "Deleting {$numOriginalFiles} old captchas...\n" );
|
||||||
$deleteTime = -microtime( true );
|
$deleteTime = -microtime( true );
|
||||||
|
|
Loading…
Reference in a new issue