X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgetConfiguration.php;h=f56729c3c994ebcd82b614f3fbde27346a7d3f2e;hb=d965b0b4652b566b1f53be756c13190b958dd7fa;hp=65ffe1422b77eeb46ee9b6498cba0cc8f00e6d5d;hpb=c9a71813b828b22c3ea58c16731449dca3eacd53;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/getConfiguration.php b/maintenance/getConfiguration.php index 65ffe1422b..f56729c3c9 100644 --- a/maintenance/getConfiguration.php +++ b/maintenance/getConfiguration.php @@ -56,7 +56,7 @@ class GetConfiguration extends Maintenance { $this->addOption( 'format', implode( ', ', self::$outFormats ), false, true ); } - protected function validateParamsAndArgs() { + public function validateParamsAndArgs() { $error_out = false; # Get the format and make sure it is set to a valid default value @@ -64,7 +64,7 @@ class GetConfiguration extends Maintenance { $validFormat = in_array( $format, self::$outFormats ); if ( !$validFormat ) { - $this->error( "--format set to an unrecognized format", 0 ); + $this->error( "--format set to an unrecognized format" ); $error_out = true; } @@ -192,5 +192,5 @@ class GetConfiguration extends Maintenance { } } -$maintClass = "GetConfiguration"; +$maintClass = GetConfiguration::class; require_once RUN_MAINTENANCE_IF_MAIN;