Merge "Change 2>&1 in doTransform to use wfShellExecWithStderr instead"

This commit is contained in:
jenkins-bot 2014-01-16 04:44:30 +00:00 committed by Gerrit Code Review
commit 7eec21c89c

View file

@ -173,12 +173,11 @@ class PdfHandler extends ImageHandler {
$cmd .= " | " . wfEscapeShellArg( $wgPdfPostProcessor );
$cmd .= " -depth 8 -resize {$width} - ";
$cmd .= wfEscapeShellArg( $dstPath ) . ")";
$cmd .= " 2>&1";
wfProfileIn( 'PdfHandler' );
wfDebug( __METHOD__ . ": $cmd\n" );
$retval = '';
$err = wfShellExec( $cmd, $retval );
$err = wfShellExecWithStderr( $cmd, $retval );
wfProfileOut( 'PdfHandler' );
$removed = $this->removeBadFile( $dstPath, $retval );