X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmwdocgen.php;h=2d6a0bebe30a7563d77fb6082a7f8886385dec54;hb=d135b6ebe5a79a6b3d0e03fe2bd11747b971ff68;hp=43041a43dff8978e21a68daadca3d2351dee3242;hpb=64b83bdb3afd0ee4f8fc1893a865409c198e601e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mwdocgen.php b/maintenance/mwdocgen.php index 43041a43df..2d6a0bebe3 100644 --- a/maintenance/mwdocgen.php +++ b/maintenance/mwdocgen.php @@ -138,8 +138,7 @@ class MWDocGen extends Maintenance { $tmpFile = tempnam( wfTempDir(), 'MWDocGen-' ); if ( file_put_contents( $tmpFile, $conf ) === false ) { - $this->error( "Could not write doxygen configuration to file $tmpFile\n", - /** exit code: */ 1 ); + $this->fatalError( "Could not write doxygen configuration to file $tmpFile\n" ); } $command = $this->doxygen . ' ' . $tmpFile; @@ -161,11 +160,10 @@ TEXT ); if ( $exitcode !== 0 ) { - $this->error( "Something went wrong (exit: $exitcode)\n", - $exitcode ); + $this->fatalError( "Something went wrong (exit: $exitcode)\n", $exitcode ); } } } -$maintClass = 'MWDocGen'; +$maintClass = MWDocGen::class; require_once RUN_MAINTENANCE_IF_MAIN;