Use correct default value for Status::getWikiText

Change-Id: If9e4f297ce8435bd9001b5a8f5b15f9b127749e3
This commit is contained in:
Umherirrender 2019-12-12 19:59:33 +01:00
parent 55d4d7c040
commit 071ce05bfe

View file

@ -192,7 +192,7 @@ class GenerateFancyCaptchas extends Maintenance {
if ( !$ret->isGood() ) {
$this->output(
"Non fatal errors:\n" .
Status::wrap( $ret )->getWikiText( null, null, 'en' ) .
Status::wrap( $ret )->getWikiText( false, false, 'en' ) .
"\n"
);
}
@ -212,7 +212,7 @@ class GenerateFancyCaptchas extends Maintenance {
$storeSucceeded = false;
$this->output( "Errored.\n" );
$this->error(
Status::wrap( $ret )->getWikiText( null, null, 'en' ) .
Status::wrap( $ret )->getWikiText( false, false, 'en' ) .
"\n"
);
}
@ -236,14 +236,14 @@ class GenerateFancyCaptchas extends Maintenance {
if ( !$ret->isGood() ) {
$this->output(
"Non fatal errors:\n" .
Status::wrap( $ret )->getWikiText( null, null, 'en' ) .
Status::wrap( $ret )->getWikiText( false, false, 'en' ) .
"\n"
);
}
} else {
$this->output( "Errored.\n" );
$this->error(
Status::wrap( $ret )->getWikiText( null, null, 'en' ) .
Status::wrap( $ret )->getWikiText( false, false, 'en' ) .
"\n"
);
}