X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmwdocgen.php;h=94472683df0919744f41f0d32cfc91226f955042;hb=11dbd4ec8e17bc34070ab2f72cc2535d3f9d5464;hp=d0056299b2057cc066802279720bfdcfe8992b9c;hpb=3cb14f56bdf3271769a5866f9dcaad56bf873aea;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mwdocgen.php b/maintenance/mwdocgen.php index d0056299b2..94472683df 100644 --- a/maintenance/mwdocgen.php +++ b/maintenance/mwdocgen.php @@ -105,7 +105,7 @@ class MWDocGen extends Maintenance { $this->excludePatterns[] = 'extensions'; } - $this->doDot = `which dot`; + $this->doDot = shell_exec( 'which dot' ); $this->doMan = $this->hasOption( 'generate-man' ); } @@ -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,8 +160,7 @@ TEXT ); if ( $exitcode !== 0 ) { - $this->error( "Something went wrong (exit: $exitcode)\n", - $exitcode ); + $this->fatalError( "Something went wrong (exit: $exitcode)\n", $exitcode ); } } }